Replace remaining occurrences of "0001-01-01" with DBA::NULL_DATE
This commit is contained in:
parent
cf1c63fcc2
commit
d71e856535
6 changed files with 11 additions and 12 deletions
|
@ -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']);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue