aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/index.php b/index.php
index 437093d..18d8313 100644
--- a/index.php
+++ b/index.php
@@ -18,7 +18,8 @@ if (is_array($CONFIG['cat'])) {
18} 18}
19 19
20# search for uncategorized hosts 20# search for uncategorized hosts
21$chosts = collectd_hosts(); 21if(!$chosts = collectd_hosts())
22 printf('<p class="warn">Error: No Collectd hosts found in <em>%s</em></p>', $CONFIG['datadir']);
22$uhosts = array_diff($chosts, $h); 23$uhosts = array_diff($chosts, $h);
23 24
24# show all uncategorized hosts 25# show all uncategorized hosts