From 37c8fe73df92978b15f9a19bfef8fa23a2c598f2 Mon Sep 17 00:00:00 2001 From: Daniel Maya Date: Mon, 23 May 2022 16:36:16 +0200 Subject: [PATCH] #9017 Fixed alert list --- pandora_console/godmode/alerts/alert_list.list.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pandora_console/godmode/alerts/alert_list.list.php b/pandora_console/godmode/alerts/alert_list.list.php index a721612eed..1f593b086e 100644 --- a/pandora_console/godmode/alerts/alert_list.list.php +++ b/pandora_console/godmode/alerts/alert_list.list.php @@ -238,6 +238,9 @@ if ($searchFlag) { } $id_agents = array_keys($agents); +if (empty($id_agents) === true) { + $id_agents[0] = 0; +} $total = agents_get_alerts_simple( (empty($agent_id) === false) ? ['0' => $agent_id] : $id_agents,