From 031c8a8db1a54ab0204140fd14488fd69490f169 Mon Sep 17 00:00:00 2001 From: Daniel Cebrian <daniel.cebrian@pandorafms.com> Date: Tue, 7 Mar 2023 09:10:18 +0100 Subject: [PATCH] #10311 ignore extraid in sql when is empty --- pandora_console/include/functions_events.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pandora_console/include/functions_events.php b/pandora_console/include/functions_events.php index c41c909c27..e6f5994a89 100644 --- a/pandora_console/include/functions_events.php +++ b/pandora_console/include/functions_events.php @@ -1494,7 +1494,8 @@ function events_get_all( break; case EVENT_GROUP_REP_EXTRAIDS: - // Group by events. + // Group by events and ignore null. + $sql_filters[] = 'AND te.id_extra IS NOT NULL AND te.id_extra <> ""'; $group_by .= 'te.id_extra'; break; }