diff options
author | Bill Marquette <billm@pfsense.org> | 2005-03-27 21:39:42 +0000 |
---|---|---|
committer | Bill Marquette <billm@pfsense.org> | 2005-03-27 21:39:42 +0000 |
commit | 769cdf3b1681e730814928a0d2a81b996d43093a (patch) | |
tree | 5905208066e4122d859bf2c378374d053038fda2 | |
parent | 79f8694f55ea39295ba649945b3557cbe16de1fc (diff) | |
download | pfsense-769cdf3b1681e730814928a0d2a81b996d43093a.zip pfsense-769cdf3b1681e730814928a0d2a81b996d43093a.tar.gz |
slightly better logic
-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> |