mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 09:26:35 +02:00
Merge branch 'MDL-41191-master' of git://github.com/danpoltawski/moodle
This commit is contained in:
commit
e2f36a71a8
4 changed files with 112 additions and 2 deletions
|
@ -298,7 +298,7 @@ function enrol_get_shared_courses($user1, $user2, $preloadcontexts = false, $che
|
|||
} else {
|
||||
$courses = $DB->get_records_sql($sql, $params);
|
||||
if ($preloadcontexts) {
|
||||
array_map('context_instance_preload', $courses);
|
||||
array_map('context_helper::preload_from_record', $courses);
|
||||
}
|
||||
return $courses;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue