Merge pull request #10010 from annando/issue-9996

issue 9996: "bd" cannot be ""
pull/10011/head
Hypolite Petovan 2021-03-08 14:12:59 -05:00 zatwierdzone przez GitHub
commit f6873cc912
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 2 dodań i 3 usunięć

Wyświetl plik

@ -2579,15 +2579,14 @@ class Contact
public static function updateBirthdays() public static function updateBirthdays()
{ {
$condition = [ $condition = [
'`bd` != "" '`bd` > ?
AND `bd` > "0001-01-01"
AND SUBSTRING(`bd`, 1, 4) != `bdyear`
AND (`contact`.`rel` = ? OR `contact`.`rel` = ?) AND (`contact`.`rel` = ? OR `contact`.`rel` = ?)
AND NOT `contact`.`pending` AND NOT `contact`.`pending`
AND NOT `contact`.`hidden` AND NOT `contact`.`hidden`
AND NOT `contact`.`blocked` AND NOT `contact`.`blocked`
AND NOT `contact`.`archive` AND NOT `contact`.`archive`
AND NOT `contact`.`deleted`', AND NOT `contact`.`deleted`',
DBA::NULL_DATE,
self::SHARING, self::SHARING,
self::FRIEND self::FRIEND
]; ];