summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Marquette <billm@pfsense.org>2005-03-27 21:39:42 +0000
committerBill Marquette <billm@pfsense.org>2005-03-27 21:39:42 +0000
commit769cdf3b1681e730814928a0d2a81b996d43093a (patch)
tree5905208066e4122d859bf2c378374d053038fda2
parent79f8694f55ea39295ba649945b3557cbe16de1fc (diff)
downloadpfsense-769cdf3b1681e730814928a0d2a81b996d43093a.zip
pfsense-769cdf3b1681e730814928a0d2a81b996d43093a.tar.gz
slightly better logic
-rwxr-xr-xusr/local/www/status_graph.php12
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>
OpenPOWER on IntegriCloud