diff --git a/enrol/authorize/enrol.php b/enrol/authorize/enrol.php index 8382dd923f356..0eb9a38ac6789 100755 --- a/enrol/authorize/enrol.php +++ b/enrol/authorize/enrol.php @@ -112,7 +112,6 @@ function print_entry($course) { } } - $teacher = get_teacher($course->id); $strcourses = get_string('courses'); $strloginto = get_string('loginto', '', $course->shortname); $zerocost = $this->zero_cost($course); @@ -142,6 +141,7 @@ function print_entry($course) { if ($course->password) { $password = ''; + $teacher = get_teacher($course->id); include($CFG->dirroot.'/enrol/manual/enrol.html'); }