From 4a16804df78550e91b20135fcfed3fda07fb46db Mon Sep 17 00:00:00 2001 From: Paul Holden Date: Tue, 7 Jul 2020 14:29:34 +0100 Subject: [PATCH] MDL-69214 user: correct participant table forced group SQL. --- user/classes/table/participants_search.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/user/classes/table/participants_search.php b/user/classes/table/participants_search.php index 7946247f96b..79a7137f46c 100644 --- a/user/classes/table/participants_search.php +++ b/user/classes/table/participants_search.php @@ -392,7 +392,7 @@ class participants_search { $forcedgroupjoin = groups_get_members_join($allowedgroupids, $forceduid, $this->context, $forcedjointype); $forcedjoins[] = $forcedgroupjoin->joins; - $forcedwhere .= "AND ({$forcedgroupjoin->wheres})"; + $forcedwhere .= " AND ({$forcedgroupjoin->wheres})"; $params = array_merge($params, $forcedgroupjoin->params);