diff options
-rw-r--r-- | index.php | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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(); | 21 | if(!$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 |