X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=include%2Fonepoll.php;h=5227b61a1ab118a3066247d631b7b8677776c584;hb=f639a86d02e378d591eee973dc79b32a6496d92b;hp=43c4495b6c4294cdfdc1d6a210859d59a130936b;hpb=87771cf6176df2b0fe4a2b5ea830aa8843279c12;p=friendica.git diff --git a/include/onepoll.php b/include/onepoll.php index 43c4495b6c..5227b61a1a 100644 --- a/include/onepoll.php +++ b/include/onepoll.php @@ -133,7 +133,7 @@ function onepoll_run(&$argv, &$argc){ logger("onepoll: poll: ({$contact['id']}) IMPORTER: {$importer['name']}, CONTACT: {$contact['name']}"); - $last_update = (($contact['last-update'] === '0000-00-00 00:00:00') + $last_update = (($contact['last-update'] <= NULL_DATE) ? datetime_convert('UTC','UTC','now - 7 days', ATOM_TIME) : datetime_convert('UTC','UTC',$contact['last-update'], ATOM_TIME) ); @@ -239,7 +239,7 @@ function onepoll_run(&$argv, &$argc){ intval($contact['id']) ); mark_for_death($contact); - } elseif ($contact['term-date'] != '0000-00-00 00:00:00') { + } elseif ($contact['term-date'] > NULL_DATE) { logger("poller: $url back from the dead - removing mark for death"); unmark_for_death($contact); }