From eb54ce9a62eb7d8ba93b63d5ab92d1b66815fac1 Mon Sep 17 00:00:00 2001
From: Luis <luis.calvo@artica.es>
Date: Tue, 25 May 2021 15:53:41 +0000
Subject: [PATCH] Ent 7492 bug visual vista agents alerts no alerts

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

diff --git a/pandora_console/include/class/AgentsAlerts.class.php b/pandora_console/include/class/AgentsAlerts.class.php
index f566e3a4d9..3a6d35b519 100644
--- a/pandora_console/include/class/AgentsAlerts.class.php
+++ b/pandora_console/include/class/AgentsAlerts.class.php
@@ -488,7 +488,7 @@ class AgentsAlerts extends HTML
 
         $nagents = count(agents_get_agents($filter_count));
 
-        if ($agents == false) {
+        if ($agents === false || empty($agents_with_alerts) === true) {
             ui_print_info_message(
                 [
                     'no_close' => true,