Code

Updated gosaSupportDaemon::get_host_by_module.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 17 Oct 2008 08:16:42 +0000 (08:16 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 17 Oct 2008 08:16:42 +0000 (08:16 +0000)
-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

index 3d42381e2e3e58fbfc42137a0d7537916161b65a..0a782df027e2d30274561b831fd137096b59d619 100644 (file)
@@ -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__, "<b>".__CLASS__."::".__FUNCTION__."</b>" , 
+        __FILE__, "<font color='red'><i>Found: 0</i></font>", $info=$mod);
+    }else{
+      @DEBUG(DEBUG_SI, __LINE__, "<b>".__CLASS__."::".__FUNCTION__."</b>" , 
+        __FILE__, "<i>Found: ".count($hosts)."</i>", $info=$mod);
+    }
+
     return($hosts);
   }