Skip to content
Permalink
Browse files

Merge branch 'MDL-61305-33-fix' of https://github.com/andrewnicols/mo…

…odle into MOODLE_33_STABLE
  • Loading branch information...
andrewnicols committed Feb 12, 2018
2 parents 6dc3fc7 + 9a36044 commit ea61136232f7bf19b6685320a557b16aed843bd1
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/modinfolib.php
@@ -653,7 +653,8 @@ public static function build_course_cache($course) {
* @return stdClass Course object that has been stored in MUC
*/
protected static function inner_build_course_cache($course, \core\lock\lock $lock) {
global $DB;
global $DB, $CFG;
require_once("{$CFG->dirroot}/course/lib.php");
// Ensure object has all necessary fields.
foreach (self::$cachedfields as $key) {

0 comments on commit ea61136

Please sign in to comment.
You can’t perform that action at this time.