diff options
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/status_graph.php | 5 |
1 files changed, 3 insertions, 2 deletions
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"); <?php $ifdescrs = array('wan' => '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"; |