#8708 only enabled agent

This commit is contained in:
Daniel Maya 2022-05-04 16:38:38 +02:00
parent 2292f0507a
commit eaef84b5b2
1 changed files with 3 additions and 0 deletions

View File

@ -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) {