From: moodler Date: Thu, 1 Mar 2007 08:06:05 +0000 (+0000) Subject: Fixed unenrol_student MDL-8591 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=7c393e9c4fe1d8623be5c2b3ff48bfca1a8d9cc1;p=moodle.git Fixed unenrol_student MDL-8591 --- diff --git a/lib/deprecatedlib.php b/lib/deprecatedlib.php index 771ed73559..af5190353e 100644 --- a/lib/deprecatedlib.php +++ b/lib/deprecatedlib.php @@ -361,7 +361,7 @@ function unenrol_student($userid, $courseid=0) { return false; } foreach($roles as $role) { - $status = role_unassign($role->id, $userid, 0, $context) and $status; + $status = role_unassign($role->id, $userid, 0, $context->id) and $status; } } else { // recursivelly unenroll student from all courses