fixiefix disabled assumptions

git-svn-id: http://www.observium.org/svn/observer/trunk@1946 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Tom Laermans
2011-03-21 11:58:01 +00:00
parent bc2fc65b30
commit 608bf7e4eb
+2 -2
View File
@@ -102,7 +102,7 @@ $port_query = mysql_query("SELECT * FROM `ports` WHERE `device_id` = '".$device[
while ($port = mysql_fetch_array($port_query))
{
echo("Port " . $port['ifDescr'] . " ");
if ($port_stats[$port['ifIndex']] && $port['disabled'] == "0")
if ($port_stats[$port['ifIndex']] && $port['disabled'] != "1")
{ // Check to make sure Port data is cached.
$this_port = &$port_stats[$port['ifIndex']];
@@ -301,7 +301,7 @@ while ($port = mysql_fetch_array($port_query))
}
}
}
elseif ($port['disabled'] == "0")
elseif ($port['disabled'] != "1")
{
echo("Port Deleted"); // Port missing from SNMP cache.
mysql_query("UPDATE `ports` SET `deleted` = '1' WHERE `device_id` = '".$device['device_id']."' AND `ifIndex` = '".$this_port['ifIndex']."'");