From 092438b2960aae49726d627da25549e446be23bf Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 12 Sep 2008 07:59:55 +0000 Subject: [PATCH] Updated support daemon -fixed get host by module, git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12439 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_gosaSupportDaemon.inc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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']; + } } } } -- 2.30.2