MDL-27007 fix incorrectly suspended user enrolment when uploading users

This bug surfaced after the recent change in enrol API, credit goes to Chaim Schendowich and Micky Fokken.
This commit is contained in:
Petr Skoda 2011-04-09 12:09:23 +02:00
parent 6b14adf210
commit 02c97e653d

View File

@ -774,7 +774,7 @@ if ($formdata = $mform2->is_cancelled()) {
}
}
$manual->enrol_user($manualcache[$courseid], $user->id, $rid, $today, $timeend, true);
$manual->enrol_user($manualcache[$courseid], $user->id, $rid, $today, $timeend);
$a = new stdClass();
$a->course = $shortname;