Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-12433: course/info - missing context

  • Loading branch information...
commit f52a0de1c5ef981b74b0293d977d0e9119061907 1 parent ea9af5b
mattc-catalyst authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  course/info.php
2  course/info.php
View
@@ -28,6 +28,7 @@
require_login();
}
+ $context = get_context_instance(CONTEXT_COURSE, $course->id);
if (!(course_parent_visible($course) || $course->visible) && !has_capability('moodle/course:viewhiddencourses', $context)) {
error(get_string('coursehidden'), $CFG->wwwroot .'/');
}
@@ -54,7 +55,6 @@
echo filter_text(text_to_html($course->summary),$course->id);
- $context = get_context_instance(CONTEXT_COURSE, $course->id);
if ($managerroles = get_config('', 'coursemanager')) {
$coursemanagerroles = split(',', $managerroles);
foreach ($coursemanagerroles as $roleid) {
Please sign in to comment.
Something went wrong with that request. Please try again.