diff options
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -11,8 +11,7 @@ $h = array(); | |||
11 | # show all categorized hosts | 11 | # show all categorized hosts |
12 | if (is_array($CONFIG['cat'])) { | 12 | if (is_array($CONFIG['cat'])) { |
13 | foreach($CONFIG['cat'] as $cat => $hosts) { | 13 | foreach($CONFIG['cat'] as $cat => $hosts) { |
14 | printf("<h2>%s</h2>\n", $cat); | 14 | host_summary($cat, $hosts); |
15 | host_summary($hosts); | ||
16 | $h = array_merge($h, $hosts); | 15 | $h = array_merge($h, $hosts); |
17 | } | 16 | } |
18 | } | 17 | } |
@@ -24,8 +23,7 @@ $uhosts = array_diff($chosts, $h); | |||
24 | 23 | ||
25 | # show all uncategorized hosts | 24 | # show all uncategorized hosts |
26 | if ($uhosts) { | 25 | if ($uhosts) { |
27 | echo "<h2>uncategorized</h2>\n"; | 26 | host_summary('uncategorized', $uhosts); |
28 | host_summary($uhosts); | ||
29 | } | 27 | } |
30 | 28 | ||
31 | html_end(); | 29 | html_end(); |