]> git.mxchange.org Git - friendica.git/commitdiff
More general date test for dob
authorAlexandre Alapetite <alexandre@alapetite.fr>
Sun, 16 Apr 2017 13:36:01 +0000 (15:36 +0200)
committerAlexandre Alapetite <alexandre@alapetite.fr>
Sun, 16 Apr 2017 13:36:01 +0000 (15:36 +0200)
mod/profiles.php

index 2d4a452f4cd59f869d7177ecc5ab26baf912a155..bd57f106d72c451409324c920ba05c9df0e1a9d0 100644 (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);