diff --git a/includes/polling/ports.inc.php b/includes/polling/ports.inc.php index 76e006e02..03896c69c 100755 --- a/includes/polling/ports.inc.php +++ b/includes/polling/ports.inc.php @@ -251,12 +251,8 @@ foreach ($ports as $port) echo("VLAN == ".$this_port['ifVlan']); // Update IF-MIB data - $brk = false; foreach ($data_oids as $oid) { - if( $brk === true ) { - break; - } if ($port[$oid] != $this_port[$oid] && !isset($this_port[$oid])) { $port['update'][$oid] = array('NULL'); @@ -268,7 +264,7 @@ foreach ($ports as $port) if ($debug) { echo($oid . ": ".$port[$oid]." -> " . $this_port[$oid]." "); } else { echo($oid . " "); } } if( ( $oid == 'ifOperStatus' || $oid == 'ifAdminStatus' ) && $this_port[$oid] == 'down' ) { - $brk = true; + break; } }