diff options
| author | Pim van den Berg | 2009-09-29 20:10:16 +0200 |
|---|---|---|
| committer | Pim van den Berg | 2009-09-29 20:10:16 +0200 |
| commit | 87e00b50607d03c6a9986478603dc56903d9f356 (patch) | |
| tree | 838bb88d37fbdf0be6648aba9267c4bf089db1d1 | |
| parent | layout improvement based on daniel's patch (diff) | |
| download | apt-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 '')
| -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 |
