MDL-36878 course: fixed issue with module metadata cache
Credit goes to Sam Chaffee.
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user