Skip to:
Content

BuddyPress.org

Changeset 11435


Ignore:
Timestamp:
02/18/2017 11:53:30 PM (3 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 2.8 branch, for 2.8.1)

File:
1 edited

Legend:

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

    r11406 r11435  
    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.