Fixed error in warning agents counter. Ticket #4122

(cherry picked from commit 8f0aef7373)
This commit is contained in:
Arturo Gonzalez 2016-10-20 15:00:00 +02:00
parent 404e0bd746
commit 0cb22a9b8a
1 changed files with 1 additions and 1 deletions

View File

@ -1383,7 +1383,7 @@ function groups_get_agents_counter ($group, $agent_filter = array(), $module_fil
$count ++; $count ++;
break; break;
case AGENT_STATUS_WARNING: case AGENT_STATUS_WARNING:
if ($total > 0 && $critical = 0 && $warning > 0) if (($total > 0) && ($critical == 0) && ($warning > 0))
$count ++; $count ++;
break; break;
case AGENT_STATUS_UNKNOWN: case AGENT_STATUS_UNKNOWN: