More general date test for dob
This commit is contained in:
parent
62768a1bb4
commit
c35eef625a
1 changed files with 1 additions and 1 deletions
|
@ -201,7 +201,7 @@ function profiles_post(App $a) {
|
|||
} else {
|
||||
$ignore_year = false;
|
||||
}
|
||||
if ($dob > '0001-01-01') {
|
||||
if (!in_array($dob, array('0000-00-00', '0001-01-01'))) {
|
||||
if (strpos($dob, '0000-') === 0 || strpos($dob, '0001-') === 0) {
|
||||
$ignore_year = true;
|
||||
$dob = substr($dob, 5);
|
||||
|
|
Loading…
Reference in a new issue