Replace remaining occurrences of "0001-01-01" with DBA::NULL_DATE

This commit is contained in:
Hypolite Petovan
2018-11-21 23:53:45 -05:00
parent cf1c63fcc2
commit d71e856535
6 changed files with 11 additions and 12 deletions

View File

@@ -864,7 +864,7 @@ class GContact
'location' => $contact['location'], 'about' => $contact['about']];
// Don't update the birthday field if not set or invalid
if (empty($contact['birthday']) || ($contact['birthday'] < '0001-01-01')) {
if (empty($contact['birthday']) || ($contact['birthday'] <= DBA::NULL_DATE)) {
unset($fields['bd']);
}