ignore extraid in sql when is empty

This commit is contained in:
Daniel Cebrian 2023-03-07 09:10:18 +01:00
parent 6f5cae9a1f
commit 031c8a8db1

@ -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;
}