diff --git a/src/bp-xprofile/classes/class-bp-xprofile-field-type-datebox.php b/src/bp-xprofile/classes/class-bp-xprofile-field-type-datebox.php
index 087fdb5..8253331 100644
a
|
b
|
class BP_XProfile_Field_Type_Datebox extends BP_XProfile_Field_Type { |
347 | 347 | |
348 | 348 | $settings = array(); |
349 | 349 | foreach ( $defaults as $key => $value ) { |
350 | | $saved = bp_xprofile_get_meta( $field_id, 'field', $key, true ); |
351 | | if ( false !== $saved ) { |
352 | | $settings[ $key ] = $saved; |
353 | | } else { |
354 | | $settings[ $key ] = $value; |
355 | | } |
| 350 | $saved = bp_xprofile_get_meta( $field_id, 'field', $key, true ); |
| 351 | $settings[ $key ] = $saved ?: $value; |
356 | 352 | } |
357 | 353 | |
358 | 354 | $settings = self::validate_settings( $settings ); |