Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/02/2010 09:42:06 PM (16 years ago)
Author:
apeatling
Message:

Fixing checks for spaces in values.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-xprofile/bp-xprofile-classes.php

    r2439 r2547  
    728728
    729729        if ( $this->is_valid_field() ) {
    730             if ( $this->exists() && $this->value != '' ) {
     730            if ( $this->exists() && !empty( $this->value ) && strlen( trim( $this->value ) ) ) {
    731731                $result = $wpdb->query( $wpdb->prepare( "UPDATE {$bp->profile->table_name_data} SET value = %s, last_updated = %s WHERE user_id = %d AND field_id = %d", $this->value, $this->last_updated, $this->user_id, $this->field_id ) );
    732732            } else if ( $this->exists() && empty( $this->value ) ) {
Note: See TracChangeset for help on using the changeset viewer.