Syntax fix
This commit is contained in:
parent
7f9af86201
commit
793ecd0756
2
lib.php
2
lib.php
|
@ -247,7 +247,7 @@ function local_treestudyplan_find_cohortmembers($cohortid)
|
|||
{
|
||||
global $DB;
|
||||
// By default wherecondition retrieves all users except the deleted, not confirmed and guest.
|
||||
$params['cohortid'] = $cohortid;
|
||||
$params = ['cohortid' => $cohortid];
|
||||
$sql = "SELECT * FROM {user} u
|
||||
JOIN {cohort_members} cm ON (cm.userid = u.id AND cm.cohortid = :cohortid)
|
||||
WHERE u.suspended = 0 AND u.id > 1
|
||||
|
|
Loading…
Reference in New Issue
Block a user