Commit fac63560 authored by Clare Lenihan's avatar Clare Lenihan Committed by Clare Lenihan
Browse files

changing function call group_remove_member to group_remove_user

group_remove_member has been removed as a duplicate function
parent 40697b33
......@@ -49,7 +49,7 @@ if (!empty($joincontrol)) {
case 'leave':
// make sure they're a member and can leave
if ($ismember && $group->jointype != 'controlled') {
group_remove_member($id, $USER->get('id'));
group_remove_user($id, $USER->get('id'));
$SESSION->add_ok_msg(get_string('leftgroup'));
}
else {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment