Merge branch 'MDL-34936-MOODLE_23_STABLE-1' of git://github.com/andrewnicols/moodle into MOODLE_23_STABLE

This commit is contained in:
Aparup Banerjee
2012-08-27 14:20:30 +08:00
+4
View File
@@ -1196,6 +1196,10 @@ function get_fast_modinfo(&$course, $userid=0) {
debugging('Coding problem - missing course modinfo property in get_fast_modinfo() call');
}
if (!property_exists($course, 'sectioncache')) {
debugging('Coding problem - missing course sectioncache property in get_fast_modinfo() call');
}
unset($cache[$course->id]); // prevent potential reference problems when switching users
$cache[$course->id] = new course_modinfo($course, $userid);