Skip to:
Content

BuddyPress.org

Changeset 3436


Ignore:
Timestamp:
11/17/2010 03:33:30 AM (14 years ago)
Author:
boonebgorges
Message:

Checks to see whether is an array before checking for strlen in xprofile_set_field_data(). Fixes #1998. Props BB_Othella

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-xprofile.php

    r3434 r3436  
    651651        return false;
    652652
    653     if ( $is_required && ( empty( $value ) || !strlen( trim( $value ) ) ) )
     653    if ( $is_required && ( empty( $value ) || !is_array( $value ) && !strlen( trim( $value ) ) ) )
    654654        return false;
    655655
Note: See TracChangeset for help on using the changeset viewer.