From 5cfa61046f74bb94dfa5b66445b63e9b30554979 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 17 Oct 2008 08:16:42 +0000 Subject: [PATCH] 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 --- gosa-core/include/class_gosaSupportDaemon.inc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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); } -- 2.30.2