Changeset 5268
- Timestamp:
- 11/03/2011 07:50:07 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-members/bp-members-signup.php
r5266 r5268 78 78 foreach ( (array) $profile_field_ids as $field_id ) { 79 79 if ( !isset( $_POST['field_' . $field_id] ) ) { 80 if ( isset( $_POST['field_' . $field_id . '_day'] ) )80 if ( !empty( $_POST['field_' . $field_id . '_day'] ) && !empty( $_POST['field_' . $field_id . '_month'] ) && !empty( $_POST['field_' . $field_id . '_year'] ) ) 81 81 $_POST['field_' . $field_id] = date( 'Y-m-d H:i:s', strtotime( $_POST['field_' . $field_id . '_day'] . $_POST['field_' . $field_id . '_month'] . $_POST['field_' . $field_id . '_year'] ) ); 82 82 } -
trunk/bp-xprofile/bp-xprofile-screens.php
r5131 r5268 66 66 if ( !isset( $_POST['field_' . $field_id] ) ) { 67 67 68 if ( !empty( $_POST['field_' . $field_id . '_day'] ) && is_numeric( $_POST['field_' . $field_id . '_day'] ) ) {68 if ( !empty( $_POST['field_' . $field_id . '_day'] ) && !empty( $_POST['field_' . $field_id . '_month'] ) && !empty( $_POST['field_' . $field_id . '_year'] ) ) { 69 69 // Concatenate the values 70 70 $date_value = $_POST['field_' . $field_id . '_day'] . ' ' . $_POST['field_' . $field_id . '_month'] . ' ' . $_POST['field_' . $field_id . '_year'];
Note: See TracChangeset
for help on using the changeset viewer.