MDL-27007 fix incorrectly suspended user enrolment when uploading users
authorPetr Skoda <commits@skodak.org>
Sat, 9 Apr 2011 10:09:23 +0000 (12:09 +0200)
committerPetr Skoda <commits@skodak.org>
Sat, 9 Apr 2011 10:09:23 +0000 (12:09 +0200)
This bug surfaced after the recent change in enrol API, credit goes to Chaim Schendowich and Micky Fokken.

admin/uploaduser.php

index 0e16638..c2f4d52 100644 (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;