From 8f38215931c9840f12da0657d8ff922e0b1bc11d Mon Sep 17 00:00:00 2001 From: Pim van den Berg Date: Sat, 14 Sep 2013 11:40:41 +0200 Subject: solve undefined index cat in index.php Reported-by: tbleiker (https://github.com/pommi/CGP/issues/25) --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'index.php') diff --git a/index.php b/index.php index 41e710f..c7f1642 100644 --- a/index.php +++ b/index.php @@ -9,7 +9,7 @@ html_start(); $h = array(); # show all categorized hosts -if (is_array($CONFIG['cat'])) { +if (isset($CONFIG['cat']) && is_array($CONFIG['cat'])) { foreach($CONFIG['cat'] as $cat => $hosts) { host_summary($cat, $hosts); $h = array_merge($h, $hosts); -- cgit v1.1