aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorPim van den Berg2013-09-14 11:40:41 +0200
committerPim van den Berg2013-09-14 11:40:41 +0200
commit8f38215931c9840f12da0657d8ff922e0b1bc11d (patch)
treed62056c34c909d3ee811659bd00c92e74b19eb5c
parentinc/collectd.inc.php: typo (diff)
downloadapt-panopticon_cgp-8f38215931c9840f12da0657d8ff922e0b1bc11d.zip
apt-panopticon_cgp-8f38215931c9840f12da0657d8ff922e0b1bc11d.tar.gz
apt-panopticon_cgp-8f38215931c9840f12da0657d8ff922e0b1bc11d.tar.bz2
apt-panopticon_cgp-8f38215931c9840f12da0657d8ff922e0b1bc11d.tar.xz
solve undefined index cat in index.php
Reported-by: tbleiker (https://github.com/pommi/CGP/issues/25)
Diffstat (limited to '')
-rw-r--r--index.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/index.php b/index.php
index 41e710f..c7f1642 100644
--- a/index.php
+++ b/index.php
@@ -9,7 +9,7 @@ html_start();
9$h = array(); 9$h = array();
10 10
11# show all categorized hosts 11# show all categorized hosts
12if (is_array($CONFIG['cat'])) { 12if (isset($CONFIG['cat']) && is_array($CONFIG['cat'])) {
13 foreach($CONFIG['cat'] as $cat => $hosts) { 13 foreach($CONFIG['cat'] as $cat => $hosts) {
14 host_summary($cat, $hosts); 14 host_summary($cat, $hosts);
15 $h = array_merge($h, $hosts); 15 $h = array_merge($h, $hosts);