Fixed a typo for enrol_into_course(), thanks Ethem

This commit is contained in:
moodler 2006-09-22 13:16:32 +00:00
parent b001dec454
commit e2183037b3

View File

@ -1549,7 +1549,7 @@ function enrol_into_course($course, $user, $enrol) {
$context = get_context_instance(CONTEXT_COURSE, $course->id);
if (role_assign($role->id, $user->id, 0, $context->id, $timestart, $timeend, 0, $enrol)) {
if (!role_assign($role->id, $user->id, 0, $context->id, $timestart, $timeend, 0, $enrol)) {
return false;
}