From: Alexandre Alapetite Date: Sun, 16 Apr 2017 13:36:01 +0000 (+0200) Subject: More general date test for dob X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c35eef625acb253a64ba7938ab96084c42096327;p=friendica.git More general date test for dob --- diff --git a/mod/profiles.php b/mod/profiles.php index 2d4a452f4c..bd57f106d7 100644 --- a/mod/profiles.php +++ b/mod/profiles.php @@ -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);