From c35eef625acb253a64ba7938ab96084c42096327 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Sun, 16 Apr 2017 15:36:01 +0200 Subject: [PATCH] More general date test for dob --- mod/profiles.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);