From 5203443215689fcec7fae36fcd41698504c5e427 Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Mon, 25 Feb 2013 09:32:11 -0300 Subject: Make sure captiveportal section of config is an array, reported on ticket #2838 --- usr/local/www/status_rrd_graph.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr/local/www/status_rrd_graph.php') diff --git a/usr/local/www/status_rrd_graph.php b/usr/local/www/status_rrd_graph.php index bfee28f..2cf22de 100755 --- a/usr/local/www/status_rrd_graph.php +++ b/usr/local/www/status_rrd_graph.php @@ -250,7 +250,7 @@ $pgtitle = array(gettext("Status"),gettext("RRD Graphs")); $closehead = false; /* Load all CP zones */ -if ($captiveportal) { +if ($captiveportal && is_array($config['captiveportal'])) { $cp_zones_tab_array = array(); foreach($config['captiveportal'] as $cpkey => $cp) { if (!isset($cp['enable'])) -- cgit v1.1