diff options
author | Pim van den Berg | 2013-09-14 11:40:41 +0200 |
---|---|---|
committer | Pim van den Berg | 2013-09-14 11:40:41 +0200 |
commit | 8f38215931c9840f12da0657d8ff922e0b1bc11d (patch) | |
tree | d62056c34c909d3ee811659bd00c92e74b19eb5c /index.php | |
parent | inc/collectd.inc.php: typo (diff) | |
download | apt-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 'index.php')
-rw-r--r-- | index.php | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -9,7 +9,7 @@ html_start(); | |||
9 | $h = array(); | 9 | $h = array(); |
10 | 10 | ||
11 | # show all categorized hosts | 11 | # show all categorized hosts |
12 | if (is_array($CONFIG['cat'])) { | 12 | if (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); |