Browse Source

More general date test for dob

pull/3321/head
Alexandre Alapetite 3 years ago
parent
commit
c35eef625a
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      mod/profiles.php

+ 1
- 1
mod/profiles.php View File

@ -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…
Cancel
Save