diff --git a/html/pages/device/edit/ports.inc.php b/html/pages/device/edit/ports.inc.php index eaee225a5..cafc9a5f7 100644 --- a/html/pages/device/edit/ports.inc.php +++ b/html/pages/device/edit/ports.inc.php @@ -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("