fix r1942 bug, patch by Paul Gear

git-svn-id: http://www.observium.org/svn/observer/trunk@1951 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Tom Laermans 2011-03-22 08:16:04 +00:00
parent 2b2d8cae0d
commit b7372e0dbd

View File

@ -53,8 +53,8 @@ while ($port = mysql_fetch_array($query))
# Mark interfaces which are OperDown (but not AdminDown) yet not ignored or disabled, or up yet ignored or disabled
# - as to draw the attention to a possible problem.
$isportbad = ($port['ifOperStatus'] == 'down' && $port['ifAdminStatus'] != 'down') ? 1 : 0;
$dowecare = ($port['ignore'] == 0 && $port['disabled'] == 0) ? 1 : 0;
$outofsync = ($isportbad && $dowecare) ? "class=red" : "";
$dowecare = ($port['ignore'] == 0 && $port['disabled'] == 0) ? $isportbad : !$isportbad;
$outofsync = $dowecare ? "class=red" : "";
echo("<td align=right><span ".$outofsync.">". $port['ifOperStatus']."</span></td>");