mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Be explicit on the testing
This commit is contained in:
parent
c3ebb2f867
commit
b406c78a1f
@ -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;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user