Permalink
Browse files

MDL-31186 fix wrong context preloading sql

  • Loading branch information...
skodak committed Jan 21, 2012
1 parent 1aff7bb commit 4d690a299539991734aee4399293ae8bf0d5ba06
Showing with 1 addition and 1 deletion.
  1. +1 −1 user/externallib.php
View
@@ -505,7 +505,7 @@ public static function get_course_participants_by_id($userlist) {
$courses = array();
list($cselect, $cjoin) = context_instance_preload_sql('c.id', CONTEXT_COURSE, 'ctx');
list($sqlcourseids, $params) = $DB->get_in_or_equal(array_unique($courseids));
- $coursesql = "SELECT c.* $uselect
+ $coursesql = "SELECT c.* $cselect
FROM {course} c $cjoin
WHERE c.id $sqlcourseids";
$rs = $DB->get_recordset_sql($coursesql, $params);

0 comments on commit 4d690a2

Please sign in to comment.