summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 07bce9c)
raw | patch | inline | side by side (parent: 07bce9c)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 17 Oct 2008 08:16:42 +0000 (08:16 +0000) | ||
committer | hickert <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
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12727 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/include/class_gosaSupportDaemon.inc | patch | blob | history |
diff --git a/gosa-core/include/class_gosaSupportDaemon.inc b/gosa-core/include/class_gosaSupportDaemon.inc
index 3d42381e2e3e58fbfc42137a0d7537916161b65a..0a782df027e2d30274561b831fd137096b59d619 100644 (file)
$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);
}