diff --git a/src/bp-groups/bp-groups-functions.php b/src/bp-groups/bp-groups-functions.php
index 7419f2660..611e4931e 100644
|
a
|
b
|
function groups_send_invites( $args = array() ) {
|
| 1689 | 1689 | 'force_resend' => false, |
| 1690 | 1690 | ), 'groups_send_invitation' ); |
| 1691 | 1691 | |
| | 1692 | |
| | 1693 | $args = array( |
| | 1694 | 'user_id' => $r['user_id'], |
| | 1695 | 'invitee_email' => $r['invitee_email'], |
| | 1696 | 'item_id' => $r['group_id'], |
| | 1697 | 'inviter_id' => $r['inviter_id'], |
| | 1698 | ); |
| | 1699 | |
| 1692 | 1700 | /* |
| 1693 | 1701 | * We will generally only want to fetch unsent invitations. |
| 1694 | 1702 | * If force_resend is true, then we need to fetch both sent and draft invites. |
| … |
… |
function groups_send_invites( $args = array() ) {
|
| 1699 | 1707 | $args['invite_sent'] = 'draft'; |
| 1700 | 1708 | } |
| 1701 | 1709 | |
| 1702 | | $args = array( |
| 1703 | | 'user_id' => $r['user_id'], |
| 1704 | | 'invitee_email' => $r['invitee_email'], |
| 1705 | | 'item_id' => $r['group_id'], |
| 1706 | | 'inviter_id' => $r['inviter_id'], |
| 1707 | | ); |
| 1708 | 1710 | $invites = groups_get_invites( $args ); |
| 1709 | 1711 | |
| 1710 | 1712 | $invited_users = array(); |