aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/index.php
diff options
context:
space:
mode:
authorPim van den Berg2009-09-29 20:10:16 +0200
committerPim van den Berg2009-09-29 20:10:16 +0200
commit87e00b50607d03c6a9986478603dc56903d9f356 (patch)
tree838bb88d37fbdf0be6648aba9267c4bf089db1d1 /index.php
parentlayout improvement based on daniel's patch (diff)
downloadapt-panopticon_cgp-87e00b50607d03c6a9986478603dc56903d9f356.zip
apt-panopticon_cgp-87e00b50607d03c6a9986478603dc56903d9f356.tar.gz
apt-panopticon_cgp-87e00b50607d03c6a9986478603dc56903d9f356.tar.bz2
apt-panopticon_cgp-87e00b50607d03c6a9986478603dc56903d9f356.tar.xz
prevent warning when no categories are defined
Diffstat (limited to 'index.php')
-rw-r--r--index.php10
1 files changed, 6 insertions, 4 deletions
diff --git a/index.php b/index.php
index cf0cb85..437093d 100644
--- a/index.php
+++ b/index.php
@@ -9,10 +9,12 @@ html_start();
9$h = array(); 9$h = array();
10 10
11# show all categorized hosts 11# show all categorized hosts
12foreach($CONFIG['cat'] as $cat => $hosts) { 12if (is_array($CONFIG['cat'])) {
13 printf("<h2>%s</h2>\n", $cat); 13 foreach($CONFIG['cat'] as $cat => $hosts) {
14 host_summary($hosts); 14 printf("<h2>%s</h2>\n", $cat);
15 $h = array_merge($h, $hosts); 15 host_summary($hosts);
16 $h = array_merge($h, $hosts);
17 }
16} 18}
17 19
18# search for uncategorized hosts 20# search for uncategorized hosts