From b1c87d90dcc1ffeedc78617e2aa1d7aacfa44996 Mon Sep 17 00:00:00 2001 From: ethem Date: Thu, 29 Jun 2006 15:03:54 +0000 Subject: [PATCH] $teacher is used in manual form. No need global. merged from 16stable. --- enrol/authorize/enrol.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/enrol/authorize/enrol.php b/enrol/authorize/enrol.php index 8382dd923f..0eb9a38ac6 100755 --- a/enrol/authorize/enrol.php +++ b/enrol/authorize/enrol.php @@ -112,7 +112,6 @@ class enrolment_plugin_authorize } } - $teacher = get_teacher($course->id); $strcourses = get_string('courses'); $strloginto = get_string('loginto', '', $course->shortname); $zerocost = $this->zero_cost($course); @@ -142,6 +141,7 @@ class enrolment_plugin_authorize if ($course->password) { $password = ''; + $teacher = get_teacher($course->id); include($CFG->dirroot.'/enrol/manual/enrol.html'); } -- 2.39.5