From dc2bbdbe0772d6068a101d0350f9de4e2dc17d9d Mon Sep 17 00:00:00 2001 From: Laur0r Date: Thu, 19 Oct 2023 13:46:03 +0200 Subject: [PATCH] Fix error for group filter with no groups --- classes/ratings_and_allocations_table.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/classes/ratings_and_allocations_table.php b/classes/ratings_and_allocations_table.php index 919784a9..48e386b4 100644 --- a/classes/ratings_and_allocations_table.php +++ b/classes/ratings_and_allocations_table.php @@ -603,6 +603,8 @@ function($o) { }, $this->groupsofallchoices)))) { $sql .= "," . $gmgroupid . ") ) "; + } else { + $sql .= "))"; } } else if ($this->groupselect != 0) { $sql .= "AND u.id in ( SELECT gm.userid FROM {groups_members} gm WHERE gm.groupid= :groupselect ) ";