From: hickert Date: Thu, 11 Sep 2008 14:05:11 +0000 (+0000) Subject: Updated opsi X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=0d708cd792062e9f24907d7d4cf0b0c9d9622168;p=gosa.git Updated opsi -Fixed Problem with get_host_by_module method. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12430 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/class_gosaSupportDaemon.inc b/gosa-core/include/class_gosaSupportDaemon.inc index b34751eee..ce0d24b69 100644 --- a/gosa-core/include/class_gosaSupportDaemon.inc +++ b/gosa-core/include/class_gosaSupportDaemon.inc @@ -106,9 +106,11 @@ class gosaSupportDaemon $data = array("module_name" => $mod); $res = $this->send_data("gosa_get_hosts_with_module",$this->s_host.":".$this->i_port,$data,TRUE); $hosts = array(); - if(isset($res['XML'][0]['HOST'])){ - foreach($res['XML'][0]['HOST'] as $entry){ - $hosts [] = $entry['VALUE']; + if(isset($res['XML'])){ + foreach($res['XML'][0] as $name => $data){ + if(preg_match("/^HOST[0-9]*$/",$name) && $name != "HSOT"){ + $hosts[] = $data[0]['MAC'][0]['VALUE']; + } } } return($hosts);