--- account_edit.php.orig 2004-10-16 20:04:34.000000000 +0200 +++ account_edit.php 2004-10-16 21:54:42.000000000 +0200 @@ -52,11 +52,11 @@ } if (ACCOUNT_DOB == 'true') { - if (!checkdate(substr(tep_date_raw($dob), 4, 2), substr(tep_date_raw($dob), 6, 2), substr(tep_date_raw($dob), 0, 4))) { + $notused = array(); + if (tep_checkdate($dob, DOB_FORMAT_STRING, &$notused) == false) { $error = true; - $messageStack->add('account_edit', ENTRY_DATE_OF_BIRTH_ERROR); - } + } } if (strlen($email_address) < ENTRY_EMAIL_ADDRESS_MIN_LENGTH) { @@ -93,7 +93,9 @@ 'customers_fax' => $fax); if (ACCOUNT_GENDER == 'true') $sql_data_array['customers_gender'] = $gender; - if (ACCOUNT_DOB == 'true') $sql_data_array['customers_dob'] = tep_date_raw($dob); + if (ACCOUNT_DOB == 'true') { + $sql_data_array['customers_dob'] = tep_date_raw($dob); + } tep_db_perform(TABLE_CUSTOMERS, $sql_data_array, 'update', "customers_id = '" . (int)$customer_id . "'");