diff --git a/mod/resource/type/file/resource.class.php b/mod/resource/type/file/resource.class.php index 15c038b2490..995721a1e3b 100644 --- a/mod/resource/type/file/resource.class.php +++ b/mod/resource/type/file/resource.class.php @@ -178,7 +178,7 @@ function update_instance($resource) { * @param THEME global object */ function display() { - global $CFG, $THEME; + global $CFG, $THEME, $course; /// Set up generic stuff first, including checking for access parent::display();