From 8f0aef737331b56c5cb23e5286f0b1b1c8b374f4 Mon Sep 17 00:00:00 2001
From: Arturo Gonzalez <arturo.gonzalez@artica.es>
Date: Thu, 20 Oct 2016 15:00:00 +0200
Subject: [PATCH] Fixed error in warning agents counter. Ticket #4122

---
 pandora_console/include/functions_groups.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pandora_console/include/functions_groups.php b/pandora_console/include/functions_groups.php
index 23b73b498e..09ab75fb5c 100644
--- a/pandora_console/include/functions_groups.php
+++ b/pandora_console/include/functions_groups.php
@@ -1383,7 +1383,7 @@ function groups_get_agents_counter ($group, $agent_filter = array(), $module_fil
 							$count ++;
 						break;
 					case AGENT_STATUS_WARNING:
-						if ($total > 0 && $critical = 0 && $warning > 0)
+						if (($total > 0) && ($critical == 0) && ($warning > 0))
 							$count ++;
 						break;
 					case AGENT_STATUS_UNKNOWN: