From e2183037b32d2f4d48ac2bf0b3ed0045eac3e574 Mon Sep 17 00:00:00 2001 From: moodler Date: Fri, 22 Sep 2006 13:16:32 +0000 Subject: [PATCH] Fixed a typo for enrol_into_course(), thanks Ethem --- lib/accesslib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/accesslib.php b/lib/accesslib.php index 8e28f4f45b..55f629e5b8 100755 --- a/lib/accesslib.php +++ b/lib/accesslib.php @@ -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; } -- 2.39.5