From 769cdf3b1681e730814928a0d2a81b996d43093a Mon Sep 17 00:00:00 2001 From: Bill Marquette Date: Sun, 27 Mar 2005 21:39:42 +0000 Subject: slightly better logic --- usr/local/www/status_graph.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'usr/local/www/status_graph.php') 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(); +} + ?> -- cgit v1.1