MDL-79635 group: ensure unique params used to determine visibility.
Or we'll trigger DML "Incorrect number of query parameters" exception.
This commit is contained in:
+2
-1
@@ -1369,7 +1369,8 @@ function groups_get_members_join($groupids, $useridcolumn, context $context = nu
|
||||
[$visibilitywhere, $visibilityparams] = \core_group\visibility::sql_member_visibility_where(
|
||||
$prefix . 'g2',
|
||||
$prefix . 'gm2',
|
||||
$ualias
|
||||
$ualias,
|
||||
$prefix . 'param_'
|
||||
);
|
||||
$where .= ' AND ' . $visibilitywhere;
|
||||
$param = array_merge($param, $visibilityparams);
|
||||
|
||||
Reference in New Issue
Block a user