changed join onto context table to an outer join because some contexts could be missing during listing of participants

This commit is contained in:
toyomoyo
2007-09-20 05:54:32 +00:00
parent bb2c22bda5
commit 9ec6ecb933
+1 -1
View File
@@ -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