aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/index.php
diff options
context:
space:
mode:
authorPim van den Berg2010-01-12 20:17:33 +0100
committerPim van den Berg2010-01-12 20:19:52 +0100
commit010b7b232dd1117fa4850065c4edde74298dcfab (patch)
treed2d2fb3b6e9dcef81d09d2abbd5a0da388e84d51 /index.php
parentmake browser cache time for images configurable (diff)
downloadapt-panopticon_cgp-010b7b232dd1117fa4850065c4edde74298dcfab.zip
apt-panopticon_cgp-010b7b232dd1117fa4850065c4edde74298dcfab.tar.gz
apt-panopticon_cgp-010b7b232dd1117fa4850065c4edde74298dcfab.tar.bz2
apt-panopticon_cgp-010b7b232dd1117fa4850065c4edde74298dcfab.tar.xz
show error when no hosts are found in datadir
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