summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: cd60b57)
raw | patch | inline | side by side (parent: cd60b57)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 11 Apr 2008 14:20:09 +0000 (14:20 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 11 Apr 2008 14:20:09 +0000 (14:20 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10368 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/include/class_gosaSupportDaemon.inc | patch | blob | history |
diff --git a/gosa-core/include/class_gosaSupportDaemon.inc b/gosa-core/include/class_gosaSupportDaemon.inc
index 9ceccc240c7860dd8bc4e733370d0cf852e1f9ab..01c12fcdea1ee751c1b34b8e75efd0fd0fd122f8 100644 (file)
/* Create list of attributes to fetch */
$pkgs = "";
foreach($package as $pkg){
- $pkgs .="<phrase>
+ $pkgs .="
+ <phrase>
<operator>like</operator>
<package>".$pkg."</package>
- </phrase>";
+ </phrase>
+ ";
}
/* Create Daemon query */
- if(empty($package)){
+ if(!count($package)){
$xml_msg = "<xml><header>gosa_query_packages_list</header><target>GOSA</target><source>GOSA</source>".
$attr.
"<where><clause><phrase><distribution>".$release."</distribution></phrase></clause></where>
$xml_msg = "<xml><header>gosa_query_packages_list</header><target>GOSA</target><source>GOSA</source>".
$attr.
"<where>
- <connector>AND</connector>
<clause>
- <phrase><distribution>".$release."</distribution></phrase>
- </clause>
- <clause>
- <connector>OR</connector>
- $pkgs
+ <connector>AND</connector>
+ <phrase><distribution>".$release."</distribution></phrase>
+ <clause>
+ <connector>OR</connector>
+ ".$pkgs."
+ </clause>
</clause>
</where>
<limit><from>0</from><to>100</to></limit>