Skip to content

Commit

Permalink
$teacher is used in manual form. No need global. merged from 16stable.
Browse files Browse the repository at this point in the history
  • Loading branch information
ethem committed Jun 29, 2006
1 parent 665d430 commit b1c87d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion enrol/authorize/enrol.php
Expand Up @@ -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);
Expand Down Expand Up @@ -142,6 +141,7 @@ function print_entry($course) {

if ($course->password) {
$password = '';
$teacher = get_teacher($course->id);
include($CFG->dirroot.'/enrol/manual/enrol.html');
}

Expand Down

0 comments on commit b1c87d9

Please sign in to comment.