1
0
Fork 0

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
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']);
}