From: hickert Date: Fri, 17 Oct 2008 08:16:42 +0000 (+0000) Subject: Updated gosaSupportDaemon::get_host_by_module. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=5cfa61046f74bb94dfa5b66445b63e9b30554979;p=gosa.git Updated gosaSupportDaemon::get_host_by_module. -Added debug info git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12727 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/class_gosaSupportDaemon.inc b/gosa-core/include/class_gosaSupportDaemon.inc index 3d42381e2..0a782df02 100644 --- a/gosa-core/include/class_gosaSupportDaemon.inc +++ b/gosa-core/include/class_gosaSupportDaemon.inc @@ -123,11 +123,19 @@ class gosaSupportDaemon $hosts[] = $data[0]['MAC'][0]['VALUE']; } elseif(isset($data[0]['IP'][0]['VALUE']) && $data[0]['IP'][0]['VALUE'] != "") { $hosts[] = $data[0]['IP'][0]['VALUE']; - } + } } } } + if(count($hosts) == 0){ + @DEBUG(DEBUG_SI, __LINE__, "".__CLASS__."::".__FUNCTION__."" , + __FILE__, "Found: 0", $info=$mod); + }else{ + @DEBUG(DEBUG_SI, __LINE__, "".__CLASS__."::".__FUNCTION__."" , + __FILE__, "Found: ".count($hosts)."", $info=$mod); + } + return($hosts); }