Changeset 5948
- Timestamp:
- 03/29/2012 01:17:22 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.5/bp-xprofile/bp-xprofile-template.php
r5229 r5948 526 526 case 'checkbox': 527 527 $option_values = BP_XProfile_ProfileData::get_value_byid( $field->id ); 528 $option_values = maybe_unserialize( $option_values );528 $option_values = (array) maybe_unserialize( $option_values ); 529 529 530 530 // Check for updated posted values, but errors preventing them from being saved first time … … 545 545 $allowed_options = xprofile_sanitize_data_value_before_save( $options[$k]->name, false, false ); 546 546 547 if ( $option_values[$j] == $allowed_options || @in_array( $allowed_options, $ value) ) {547 if ( $option_values[$j] == $allowed_options || @in_array( $allowed_options, $option_values ) ) { 548 548 $selected = ' checked="checked"'; 549 549 break;
Note: See TracChangeset
for help on using the changeset viewer.