Skip to:
Content

BuddyPress.org

Ticket #8127: 8127.patch

File 8127.patch, 575 bytes (added by imath, 7 years ago)
  • src/bp-groups/bp-groups-functions.php

    diff --git src/bp-groups/bp-groups-functions.php src/bp-groups/bp-groups-functions.php
    index 9759c1d48..ac5af0f83 100644
    function bp_groups_migrate_invitations() { 
    31343134        $bp = buddypress();
    31353135
    31363136        $records = $wpdb->get_results( "SELECT id, group_id, user_id, inviter_id, date_modified, comments, invite_sent FROM {$bp->groups->table_name_members} WHERE is_confirmed = 0 AND is_banned = 0" );
     3137        if ( ! $records ) {
     3138                return;
     3139        }
    31373140
    31383141        $processed = array();
    31393142        $values = array();