diff options
-rwxr-xr-x | usr/local/www/status_graph.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/usr/local/www/status_graph.php b/usr/local/www/status_graph.php index 9dad664..f4cd86e 100755 --- a/usr/local/www/status_graph.php +++ b/usr/local/www/status_graph.php @@ -44,14 +44,14 @@ if ($_POST['height']) else $height = "275"; -$curif = "wan"; -if ($_GET['if']) +if ($_GET['if']) { $curif = $_GET['if']; - -if ($curif == "wan") - $ifnum = get_real_wan_interface(); -else $ifnum = $config['interfaces'][$curif]['if']; +} else { + $curif = "wan"; + $ifnum = get_real_wan_interface(); +} + ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> |