aboutsummaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-07-16 09:36:07 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-07-16 09:36:07 +0000
commitd8d9ce784ba2a05776f194b7923dafd02ccd6391 (patch)
tree0e345377b99d7a57e8a536d2deb091c064419483 /mod
parent0ad7f6660c247e1eead0e651f4da73db762e2d2a (diff)
downloadelgg-d8d9ce784ba2a05776f194b7923dafd02ccd6391.tar.gz
elgg-d8d9ce784ba2a05776f194b7923dafd02ccd6391.tar.bz2
Closes #116: Groups join clears invite flags
http://trac.elgg.org/elgg/ticket/116 git-svn-id: https://code.elgg.org/elgg/trunk@1434 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod')
-rw-r--r--mod/groups/actions/join.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/mod/groups/actions/join.php b/mod/groups/actions/join.php
index 639ed14da..bf6e95482 100644
--- a/mod/groups/actions/join.php
+++ b/mod/groups/actions/join.php
@@ -32,6 +32,10 @@
{
system_message(elgg_echo("groups:joined"));
+ // Remove any invite or join request flags
+ remove_metadata($user->guid, 'group_invite', $group->guid);
+ remove_metadata($user->guid, 'group_join_request', $group->guid);
+
forward($group->getURL());
exit;
}