diff options
-rw-r--r-- | index.php | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -9,10 +9,12 @@ html_start(); | |||
9 | $h = array(); | 9 | $h = array(); |
10 | 10 | ||
11 | # show all categorized hosts | 11 | # show all categorized hosts |
12 | foreach($CONFIG['cat'] as $cat => $hosts) { | 12 | if (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 |