Skip to:
Content

BuddyPress.org

Changeset 3621


Ignore:
Timestamp:
12/30/2010 08:56:25 PM (14 years ago)
Author:
boonebgorges
Message:

Fixes PHP warnings during signup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-signup.php

    r3614 r3621  
    112112
    113113            /* No errors! Let's register those deets. */
    114             $active_signup = $bp->site_options['registration'];
     114            $active_signup = !empty( $bp->site_options['registration'] ) ? $bp->site_options['registration'] : '';
    115115
    116116            if ( 'none' != $active_signup ) {
     
    449449
    450450                foreach( (array)$profile_field_ids as $field_id ) {
     451                    if ( empty( $usermeta["field_{$field_id}"] ) )
     452                        continue;
     453                   
    451454                    $current_field = $usermeta["field_{$field_id}"];
    452 
    453                     if ( !empty( $current_field ) )
    454                         xprofile_set_field_data( $field_id, $user_id, $current_field );
     455                    xprofile_set_field_data( $field_id, $user_id, $current_field );
    455456                }
    456457            }
Note: See TracChangeset for help on using the changeset viewer.