Skip to content

Commit

Permalink
Fixed unenrol_student MDL-8591
Browse files Browse the repository at this point in the history
  • Loading branch information
moodler committed Mar 1, 2007
1 parent 826ea2b commit 31eb4b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/deprecatedlib.php
Expand Up @@ -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
Expand Down

0 comments on commit 31eb4b1

Please sign in to comment.