From 90a0e1f5d0aa224f1219d35a4a67bbe8a8cc9f9c Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sat, 17 May 2008 20:43:53 +0000 Subject: Ticket #1648 fixes --- usr/local/www/status_graph.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'usr') diff --git a/usr/local/www/status_graph.php b/usr/local/www/status_graph.php index f0af458..2f3bf7f 100755 --- a/usr/local/www/status_graph.php +++ b/usr/local/www/status_graph.php @@ -65,8 +65,9 @@ include("head.inc"); 'WAN', 'lan' => 'LAN'); -for ($j = 1; isset($config['interfaces']['opt' . $j]['enable']); $j++) { - $ifdescrs['opt' . $j] = $config['interfaces']['opt' . $j]['descr']; +for($j = 1; isset($config['interfaces']['opt' . $j]); $j++) { + if(isset($config['interfaces']['opt' . $j]['enable'])) + $ifdescrs['opt' . $j] = $config['interfaces']['opt' . $j]['descr']; } if((isset($config['ipsec']['enable'])) || (isset($config['ipsec']['mobileclients']['enable']))) { $ifdescrs['ipsec'] = "IPsec"; -- cgit v1.1