Skip to content

Commit

Permalink
MDL-36878 course: fixed issue with module metadata cache
Browse files Browse the repository at this point in the history
Credit goes to Sam Chaffee.
  • Loading branch information
Sam Hemelryk committed Nov 28, 2012
1 parent b58d1b9 commit ad47d02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion course/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -1882,7 +1882,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;
Expand Down

0 comments on commit ad47d02

Please sign in to comment.