]> git.mjollnir.org Git - moodle.git/commitdiff
Fixed a typo for enrol_into_course(), thanks Ethem
authormoodler <moodler>
Fri, 22 Sep 2006 13:16:32 +0000 (13:16 +0000)
committermoodler <moodler>
Fri, 22 Sep 2006 13:16:32 +0000 (13:16 +0000)
lib/accesslib.php

index 8e28f4f45bc0a788acab83f07fff99f8cea67a00..55f629e5b8c549331b17346000c2679570bf62bb 100755 (executable)
@@ -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;
         }