diff --git a/course/edit.html b/course/edit.html index dd50389e36d..b1a36f24e43 100644 --- a/course/edit.html +++ b/course/edit.html @@ -271,7 +271,7 @@ enrol), 'print_entry') && $course->enrol != 'manual') { + if (isset($course) && method_exists(enrolment_factory::factory($course->enrol), 'print_entry') && $course->enrol != 'manual') { ?> :