aboutsummaryrefslogtreecommitdiff
path: root/mod/groups/actions
diff options
context:
space:
mode:
Diffstat (limited to 'mod/groups/actions')
-rw-r--r--mod/groups/actions/addtogroup.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/mod/groups/actions/addtogroup.php b/mod/groups/actions/addtogroup.php
index 52494760f..2cf242102 100644
--- a/mod/groups/actions/addtogroup.php
+++ b/mod/groups/actions/addtogroup.php
@@ -45,7 +45,8 @@
remove_entity_relationship($group->guid, 'invited', $user->guid);
remove_entity_relationship($user->guid, 'membership_request', $group->guid);
- add_entity_relationship($user->guid, 'member', $group->guid);
+ //add_entity_relationship($user->guid, 'member', $group->guid);
+ $group->join($user);
// send welcome email
notify_user($user->getGUID(), $group->owner_guid,