From: hickert Date: Wed, 23 Apr 2008 12:15:00 +0000 (+0000) Subject: Update support daemon X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=9edba67afa6879eb26e8da592beca5f4b82dbc06;p=gosa.git Update support daemon git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10650 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/class_gosaSupportDaemon.inc b/gosa-core/include/class_gosaSupportDaemon.inc index 3b847f8e2..28f77e33d 100644 --- a/gosa-core/include/class_gosaSupportDaemon.inc +++ b/gosa-core/include/class_gosaSupportDaemon.inc @@ -1353,7 +1353,22 @@ class gosaSupportDaemon "".$server."". ""; - return($this->_send($xml_msg,TRUE)); + $res = $this->_send($xml_msg,TRUE); + + /* Check if there are results for POLICY + */ + if(isset($res['XML']['POLICY'])){ + + /* Ensure that we return an array + */ + $tmp = $res['XML']['POLICY']; + if(!is_array($tmp)){ + $tmp = array($tmp); + } + return($tmp); + }else{ + return(array()); + } }