Changeset 8178 for trunk/bp-xprofile/bp-xprofile-screens.php
- Timestamp:
- 03/27/2014 07:34:02 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-xprofile/bp-xprofile-screens.php
r7998 r8178 107 107 108 108 // Certain types of fields (checkboxes, multiselects) may come through empty. Save them as an empty array so that they don't get overwritten by the default on the next edit. 109 if ( empty( $_POST['field_' . $field_id] ) ) { 110 $value = array(); 111 } else { 112 $value = $_POST['field_' . $field_id]; 113 } 109 $value = isset( $_POST['field_' . $field_id] ) ? $_POST['field_' . $field_id] : ''; 114 110 115 111 if ( !xprofile_set_field_data( $field_id, bp_displayed_user_id(), $value, $is_required[$field_id] ) ) {
Note: See TracChangeset
for help on using the changeset viewer.