Permalink
Browse files

Merge branch 'MDL-25837_wip' of git://github.com/skodak/moodle

  • Loading branch information...
2 parents 227d6da + 85b8f8d commit bec662a0f603aceb43682874a51edd05c9600930 Sam Hemelryk committed Jan 17, 2011
Showing with 5 additions and 1 deletion.
  1. +1 −1 blocks/course_overview/block_course_overview.php
  2. +4 −0 lib/moodlelib.php
@@ -64,7 +64,7 @@ public function get_content() {
$courses_limit = $courses_limit + 1;
}
- $courses = enrol_get_my_courses('id, shortname', 'visible DESC,sortorder ASC', $courses_limit);
+ $courses = enrol_get_my_courses('id, shortname, modinfo', 'visible DESC,sortorder ASC', $courses_limit);
$site = get_site();
$course = $site; //just in case we need the old global $course hack
View
@@ -3045,6 +3045,10 @@ function &get_fast_modinfo(&$course, $userid=0) {
return $cache[$course->id];
}
+ if (!property_exists($course, 'modinfo')) {
+ debugging('Coding problem - missing course modinfo property in get_fast_modinfo() call');
+ }
+
if (empty($course->modinfo)) {
// no modinfo yet - load it
rebuild_course_cache($course->id);

0 comments on commit bec662a

Please sign in to comment.