Permalink
Browse files

$teacher is used in manual form. No need global. merged from 16stable.

  • Loading branch information...
1 parent 665d430 commit b1c87d90dcc1ffeedc78617e2aa1d7aacfa44996 ethem committed Jun 29, 2006
Showing with 1 addition and 1 deletion.
  1. +1 −1 enrol/authorize/enrol.php
View
2 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');
}

0 comments on commit b1c87d9

Please sign in to comment.