Skip to:
Content

BuddyPress.org

Changeset 12445


Ignore:
Timestamp:
08/15/2019 03:45:22 PM (6 years ago)
Author:
dcavins
Message:

Invitations: Stop migration if no invitations are found.

If no invitations are found in the group invitations migration routine, stop the migration.

Props imath.

Fixes #8127.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-groups/bp-groups-functions.php

    r12429 r12445  
    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();
Note: See TracChangeset for help on using the changeset viewer.