diff options
Diffstat (limited to 'usr/local/www/status_graph.php')
-rwxr-xr-x | usr/local/www/status_graph.php | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/usr/local/www/status_graph.php b/usr/local/www/status_graph.php index 6397d75..21c7fba 100755 --- a/usr/local/www/status_graph.php +++ b/usr/local/www/status_graph.php @@ -54,16 +54,10 @@ if ($_POST['height']) else $height = "200"; -$ifdescrs = array('wan' => gettext('WAN'), 'lan' => gettext('LAN')); - -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 ($_GET['if']) { $curif = $_GET['if']; $found = false; + $ifdescrs = get_configured_interface_list(); foreach($ifdescrs as $descr => $ifdescr) if($descr == $curif) $found = true; if(!$found) { |