Skip to:
Content

BuddyPress.org

Changeset 4830


Ignore:
Timestamp:
07/24/2011 12:42:41 PM (13 years ago)
Author:
djpaul
Message:

Fix php notice on registration page

File:
1 edited

Legend:

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

    r4824 r4830  
    314314    $illegal_names = get_site_option( 'illegal_names' );
    315315
    316     if ( !validate_username( $user_name ) || in_array( $user_name, (array)$illegal_names ) || $user_name != $maybe[0] )
     316    if ( !validate_username( $user_name ) || in_array( $user_name, (array)$illegal_names ) || ( !empty( $maybe[0] ) && $user_name != $maybe[0] ) )
    317317        $errors->add( 'user_name', __( 'Only lowercase letters and numbers allowed', 'buddypress' ) );
    318318
Note: See TracChangeset for help on using the changeset viewer.