]> git.mxchange.org Git - friendica.git/blobdiff - mod/profiles.php
Replace remaining occurrences of "0001-01-01" with DBA::NULL_DATE
[friendica.git] / mod / profiles.php
index 459a1c5e75a73fc1e0030933fe2d051499b6d0f9..fe3b362317f86e38617e3e53e8cc52a2c8656d68 100644 (file)
@@ -216,7 +216,7 @@ function profiles_post(App $a) {
                } else {
                        $ignore_year = false;
                }
-               if (!in_array($dob, ['0000-00-00', '0001-01-01'])) {
+               if (!in_array($dob, ['0000-00-00', DBA::NULL_DATE])) {
                        if (strpos($dob, '0000-') === 0 || strpos($dob, '0001-') === 0) {
                                $ignore_year = true;
                                $dob = substr($dob, 5);