guid, 'groupchat', $group->guid)) remove_entity_relationship($user->guid, 'groupchat', $group->guid); } error_log("leave ok"); echo "OK"; ?>