Changeset 2547 for trunk/bp-xprofile/bp-xprofile-classes.php
- Timestamp:
- 02/02/2010 09:42:06 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/bp-xprofile/bp-xprofile-classes.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-xprofile/bp-xprofile-classes.php
r2439 r2547 728 728 729 729 if ( $this->is_valid_field() ) { 730 if ( $this->exists() && $this->value != '') {730 if ( $this->exists() && !empty( $this->value ) && strlen( trim( $this->value ) ) ) { 731 731 $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 ) ); 732 732 } else if ( $this->exists() && empty( $this->value ) ) {
Note: See TracChangeset
for help on using the changeset viewer.