MDL-36878 course: fixed issue with module metadata cache

Credit goes to Sam Chaffee.
This commit is contained in:
Sam Hemelryk
2012-11-29 12:57:31 +13:00
parent 78601ea6fe
commit a5af780bce
+1 -1
View File
@@ -1921,7 +1921,7 @@ function get_module_metadata($course, $modnames, $sectionreturn = null) {
if (!course_allowed_module($course, $modname)) {
continue;
}
if (isset($modlist[$modname])) {
if (isset($modlist[$course->id][$modname])) {
// This module is already cached
$return[$modname] = $modlist[$course->id][$modname];
continue;