From eaef84b5b297063bff52ff2f5e6b27dc8f2211bc Mon Sep 17 00:00:00 2001 From: Daniel Maya Date: Wed, 4 May 2022 16:38:38 +0200 Subject: [PATCH] #8708 only enabled agent --- pandora_console/include/functions_alerts.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pandora_console/include/functions_alerts.php b/pandora_console/include/functions_alerts.php index 81b36f7476..070ff52831 100644 --- a/pandora_console/include/functions_alerts.php +++ b/pandora_console/include/functions_alerts.php @@ -118,6 +118,9 @@ function alerts_get_alerts($id_group=0, $free_search='', $status='all', $standby $sql .= ' AND t3.id_agente = '.$id_agent; } + // Only enabled agent. + $sql .= ' AND t3.disabled = 0'; + $row_alerts = db_get_all_rows_sql($sql); if ($total) {