]> git.mxchange.org Git - friendica.git/commitdiff
Issue 9996: "bd" is a date field it cannot be empty
authorMichael <heluecht@pirati.ca>
Mon, 8 Mar 2021 18:50:50 +0000 (18:50 +0000)
committerMichael <heluecht@pirati.ca>
Mon, 8 Mar 2021 18:50:50 +0000 (18:50 +0000)
src/Model/Contact.php

index cacc3e4f1ef1a7b56bbfc0697893b0c745a8e79e..e68ae4769d34671b0e1c38ac78bcd81612afbb97 100644 (file)
@@ -2579,9 +2579,7 @@ class Contact
        public static function updateBirthdays()
        {
                $condition = [
-                       '`bd` != ""
-                       AND `bd` > "0001-01-01"
-                       AND SUBSTRING(`bd`, 1, 4) != `bdyear`
+                       '`bd` > "0001-01-01"
                        AND (`contact`.`rel` = ? OR `contact`.`rel` = ?)
                        AND NOT `contact`.`pending`
                        AND NOT `contact`.`hidden`