Skip to:
Content

BuddyPress.org

Changeset 2642


Ignore:
Timestamp:
02/10/2010 12:42:51 PM (14 years ago)
Author:
apeatling
Message:

Fixes #1861

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-groups.php

    r2622 r2642  
    21652165
    21662166function groups_accept_invite( $user_id, $group_id ) {
     2167    global $bp;
     2168
    21672169    if ( groups_is_user_member( $user_id, $group_id ) )
    21682170        return false;
     
    21772179    groups_update_groupmeta( $group_id, 'total_member_count', (int) groups_get_groupmeta( $group_id, 'total_member_count') + 1 );
    21782180    groups_update_groupmeta( $group_id, 'last_activity', gmdate( "Y-m-d H:i:s" ) );
     2181
     2182    bp_core_delete_notifications_for_user_by_item_id( $user_id, $group_id, $bp->groups->slug, 'group_invite' );
    21792183
    21802184    do_action( 'groups_accept_invite', $user_id, $group_id );
Note: See TracChangeset for help on using the changeset viewer.