From 7c864697a263f0386734f4a044abaa2103e3e880 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 27 Mar 2008 07:44:22 +0000 Subject: [PATCH] Updated SI Package stuff git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10006 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_gosaSupportDaemon.inc | 27 +++++++++---------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/gosa-core/include/class_gosaSupportDaemon.inc b/gosa-core/include/class_gosaSupportDaemon.inc index 8270f9ffc..de02dd55b 100644 --- a/gosa-core/include/class_gosaSupportDaemon.inc +++ b/gosa-core/include/class_gosaSupportDaemon.inc @@ -139,32 +139,29 @@ class gosaSupportDaemon $this->reset_error(); $ret = array(); + /* Check Parameter */ if(!is_array($attrs) || !count($attrs)){ trigger_error("Second parameter must be an array. With at least one attribute name."); return($ret); } - - $attr = ""; + + /* Create list of attributes to fetch */ + $attr = ""; foreach($attrs as $at){ -# $attr.= ""; + $attr.= $at.", "; } - + + /* Create Daemon query */ if(empty($package)){ $xml_msg = "
gosa_query_packages_list
GOSAGOSA". - $attr. - "".$release."10
"; + "". + "".$release." + "; }else{ - $xml_msg = - "
gosa_query_packages_list
GOSAGOSA". - $attr. - "". - "AND". - "".$release."". - "".$package."". - "". - "10
"; } + echo htmlentities($xml_msg); + if($this->connect()){ $this->o_sock->write($xml_msg); $str = trim($this->o_sock->read()); -- 2.30.2