MDL-34783 Retrieve the sectioncache parameter for enrolled courses in the course_overview block

The sectioncache field is used by course_modinfo and without it, the
modinfo cache is repeatedly reset.
This commit is contained in:
Andrew Robert Nicols 2012-08-08 10:51:14 +01:00
parent 470d47f512
commit 49ed1b0d0b

View File

@ -125,7 +125,7 @@ function block_course_overview_get_sorted_courses() {
$limit = block_course_overview_get_max_user_courses();
$courses = enrol_get_my_courses('id, shortname, fullname, modinfo');
$courses = enrol_get_my_courses('id, shortname, fullname, modinfo, sectioncache');
$site = get_site();
if (array_key_exists($site->id,$courses)) {