Skip to:
Content

BuddyPress.org

Changeset 11437


Ignore:
Timestamp:
02/18/2017 11:54:55 PM (8 years ago)
Author:
johnjamesjacoby
Message:

Sign-ups: Prevent debug notice when trying to activate a user who signed up not through BuddyPress's registration form.

Fixes #7447. (In trunk, for 2.9.0)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-members/classes/class-bp-members-admin.php

    r11406 r11437  
    20652065            <?php foreach ( $signups as $signup ) :
    20662066                $last_notified = mysql2date( 'Y/m/d g:i:s a', $signup->date_sent );
     2067                $profile_field_ids = array();
    20672068
    20682069                // Get all xprofile field IDs except field 1.
    2069                 $profile_field_ids = array_flip( explode( ',', $signup->meta['profile_field_ids'] ) );
    2070                 unset( $profile_field_ids[1] );
    2071             ?>
     2070                if ( ! empty( $signup->meta['profile_field_ids'] ) ) {
     2071                    $profile_field_ids = array_flip( explode( ',', $signup->meta['profile_field_ids'] ) );
     2072                    unset( $profile_field_ids[1] );
     2073                } ?>
    20722074
    20732075                <li>
Note: See TracChangeset for help on using the changeset viewer.