From: hickert Date: Fri, 12 Sep 2008 07:59:55 +0000 (+0000) Subject: Updated support daemon X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=092438b2960aae49726d627da25549e446be23bf;p=gosa.git Updated support daemon -fixed get host by module, git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12439 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/class_gosaSupportDaemon.inc b/gosa-core/include/class_gosaSupportDaemon.inc index bea358f72..ae7feceed 100644 --- a/gosa-core/include/class_gosaSupportDaemon.inc +++ b/gosa-core/include/class_gosaSupportDaemon.inc @@ -108,8 +108,12 @@ class gosaSupportDaemon $hosts = array(); if(isset($res['XML'])){ foreach($res['XML'][0] as $name => $data){ - if(preg_match("/^HOST[0-9]*$/",$name) && $name != "HOST"){ - $hosts[] = $data[0]['MAC'][0]['VALUE']; + if(preg_match("/^ANSWER[0-9]*$/",$name)){ + if(isset($data[0]['MAC'][0]['VALUE'])){ + $hosts[] = $data[0]['MAC'][0]['VALUE']; + }elseif(isset($data[0]['VALUE'])){ + $hosts[] = $data[0]['VALUE']; + } } } }