summaryrefslogtreecommitdiffstats
path: root/usr/local/www/status_graph.php
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2013-02-19 17:20:33 +0000
committerErmal <eri@pfsense.org>2013-02-19 17:20:33 +0000
commitb406c78a1fa408dde44fdbba5eedd103fc20b1fd (patch)
treeea145eb5a455f21941ccfc7f6a287deb54858d2e /usr/local/www/status_graph.php
parentc3ebb2f867d33d588c8ad349948b2b7dea835498 (diff)
downloadpfsense-b406c78a1fa408dde44fdbba5eedd103fc20b1fd.zip
pfsense-b406c78a1fa408dde44fdbba5eedd103fc20b1fd.tar.gz
Be explicit on the testing
Diffstat (limited to 'usr/local/www/status_graph.php')
-rwxr-xr-xusr/local/www/status_graph.php10
1 files changed, 7 insertions, 3 deletions
diff --git a/usr/local/www/status_graph.php b/usr/local/www/status_graph.php
index 2313e66..cd08de2 100755
--- a/usr/local/www/status_graph.php
+++ b/usr/local/www/status_graph.php
@@ -72,9 +72,13 @@ foreach (array('server', 'client') as $mode) {
if ($_GET['if']) {
$curif = $_GET['if'];
$found = false;
- foreach($ifdescrs as $descr => $ifdescr)
- if($descr == $curif) $found = true;
- if(!$found) {
+ foreach($ifdescrs as $descr => $ifdescr) {
+ if ($descr == $curif) {
+ $found = true;
+ break;
+ }
+ }
+ if ($found === false) {
Header("Location: status_graph.php");
exit;
}
OpenPOWER on IntegriCloud