diff options
author | friendica <info@friendica.com> | 2014-09-08 20:35:15 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-09-08 20:35:15 -0700 |
commit | c6d07feff575862b5db8d05e02be6375e51034c7 (patch) | |
tree | 8d1bf75a545075753033c47ee28f4d4ae2a96517 /include/onepoll.php | |
parent | 8fbeb370db7d1ec16a2f221fb7f022aebe7be109 (diff) | |
download | volse-hubzilla-c6d07feff575862b5db8d05e02be6375e51034c7.tar.gz volse-hubzilla-c6d07feff575862b5db8d05e02be6375e51034c7.tar.bz2 volse-hubzilla-c6d07feff575862b5db8d05e02be6375e51034c7.zip |
This is long overdue - use a symblic constant NULL_DATE instead of the easily mis-typed sequence '0000-00-00 00:00:00'
Diffstat (limited to 'include/onepoll.php')
-rw-r--r-- | include/onepoll.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/onepoll.php b/include/onepoll.php index d64785f92..1f28852e9 100644 --- a/include/onepoll.php +++ b/include/onepoll.php @@ -67,7 +67,7 @@ function onepoll_run($argv, $argc){ logger("onepoll: poll: ({$contact['id']}) IMPORTER: {$importer['xchan_name']}, CONTACT: {$contact['xchan_name']}"); - $last_update = ((($contact['abook_updated'] === $contact['abook_created']) || ($contact['abook_updated'] === '0000-00-00 00:00:00')) + $last_update = ((($contact['abook_updated'] === $contact['abook_created']) || ($contact['abook_updated'] === NULL_DATE)) ? datetime_convert('UTC','UTC','now - 7 days') : datetime_convert('UTC','UTC',$contact['abook_updated'] . ' - 2 days') ); |