diff --git src/bp-groups/bp-groups-functions.php src/bp-groups/bp-groups-functions.php
index ec3ec01..288d78e 100644
|
|
function groups_join_group( $group_id, $user_id = 0 ) { |
409 | 409 | |
410 | 410 | // Check if the user has an outstanding request. If so, delete it. |
411 | 411 | if ( groups_check_for_membership_request( $user_id, $group_id ) ) |
412 | | groups_delete_membership_request( $user_id, $group_id ); |
| 412 | groups_delete_membership_request( null, $user_id, $group_id ); |
413 | 413 | |
414 | 414 | // User is already a member, just return true |
415 | 415 | if ( groups_is_user_member( $user_id, $group_id ) ) |
… |
… |
function groups_accept_invite( $user_id, $group_id ) { |
976 | 976 | } |
977 | 977 | |
978 | 978 | if ( groups_check_for_membership_request( $user_id, $group_id ) ) { |
979 | | groups_delete_membership_request( $user_id, $group_id ); |
| 979 | groups_delete_membership_request( null, $user_id, $group_id ); |
980 | 980 | } |
981 | 981 | |
982 | 982 | return true; |