Changeset 1036
- Timestamp:
- 02/09/2009 06:21:36 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-xprofile/bp-xprofile-classes.php
r1025 r1036 327 327 328 328 $counter = 1; 329 if ( count($options) > 0) {329 if ( $options ) { 330 330 foreach ( $options as $option_key => $option_value ) { 331 331 $is_default = 0; … … 339 339 } 340 340 341 if ( !empty( $option_valu ) ) { 342 343 // don't insert an empty option. 341 if ( '' != $option_value ) { 344 342 if ( !$wpdb->query( $wpdb->prepare("INSERT INTO {$bp->profile->table_name_fields} (group_id, parent_id, type, name, description, is_required, option_order, is_default_option) VALUES (%d, %d, 'option', %s, '', 0, %d, %d)", $this->group_id, $parent_id, $option_value, $counter, $is_default ) ) ) 345 343 return false; 346 347 return true;348 344 } 349 345
Note: See TracChangeset
for help on using the changeset viewer.