Merge branch 'MDL-34783-master-1' of git://git.luns.net.uk/moodle
authorEloy Lafuente (stronk7) <stronk7@moodle.org>
Tue, 14 Aug 2012 20:45:06 +0000 (22:45 +0200)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Tue, 14 Aug 2012 20:45:06 +0000 (22:45 +0200)
blocks/course_overview/locallib.php

index 45d5747..bc159de 100644 (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)) {