summaryrefslogtreecommitdiffstats
path: root/usr/local/www/status_graph.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2010-11-06 14:01:57 -0400
committerScott Ullrich <sullrich@pfsense.org>2010-11-06 14:01:57 -0400
commit9455610597b6baba95a2a7c7d7183c66f5265889 (patch)
treef3b7d78c96c4b81085686abfad94eeec1b369826 /usr/local/www/status_graph.php
parentd815d5faecddfdf1d7064b0143df9fbe017af5d5 (diff)
downloadpfsense-9455610597b6baba95a2a7c7d7183c66f5265889.zip
pfsense-9455610597b6baba95a2a7c7d7183c66f5265889.tar.gz
Define variable a bit earlier in case its shared
Diffstat (limited to 'usr/local/www/status_graph.php')
-rwxr-xr-xusr/local/www/status_graph.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr/local/www/status_graph.php b/usr/local/www/status_graph.php
index 21c7fba..4347da8 100755
--- a/usr/local/www/status_graph.php
+++ b/usr/local/www/status_graph.php
@@ -54,10 +54,12 @@ if ($_POST['height'])
else
$height = "200";
+// Get configured interface list
+$ifdescrs = get_configured_interface_list();
+
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) {
OpenPOWER on IntegriCloud