changed join onto context table to an outer join because some contexts could be missing during listing of participants
This commit is contained in:
+1
-1
@@ -332,7 +332,7 @@
|
||||
$select .= $course->enrolperiod?', r.timeend ':'';
|
||||
|
||||
$from = "FROM {$CFG->prefix}user u
|
||||
JOIN {$CFG->prefix}context ctx
|
||||
LEFT OUTER JOIN {$CFG->prefix}context ctx
|
||||
ON (u.id=ctx.instanceid AND ctx.contextlevel = ".CONTEXT_USER.")
|
||||
JOIN {$CFG->prefix}role_assignments r
|
||||
ON u.id=r.userid
|
||||
|
||||
Reference in New Issue
Block a user