Skip to:
Content

BuddyPress.org

Ticket #3630: 3630.01.patch

File 3630.01.patch, 875 bytes (added by boonebgorges, 13 years ago)
  • bp-members/bp-members-signup.php

    diff --git bp-members/bp-members-signup.php bp-members/bp-members-signup.php
    index 1b549e7..4b7f8e0 100644
    function bp_core_screen_signup() { 
    7575                                // Loop through the posted fields formatting any datebox values then validate the field
    7676                                foreach ( (array) $profile_field_ids as $field_id ) {
    7777                                        if ( !isset( $_POST['field_' . $field_id] ) ) {
    78                                                 if ( isset( $_POST['field_' . $field_id . '_day'] ) )
     78                                                if ( !empty( $_POST['field_' . $field_id . '_day'] ) && !empty( $_POST['field_' . $field_id . '_month'] ) && !empty( $_POST['field_' . $field_id . '_year'] ) )
    7979                                                        $_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'] ) );
    8080                                        }
    8181