Be explicit on the testing

This commit is contained in:
Ermal 2013-02-19 17:20:33 +00:00
parent c3ebb2f867
commit b406c78a1f

View File

@ -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;
}