mirror of
https://github.com/friendica/friendica
synced 2025-04-26 13:10:11 +00:00
NULL_DATE is now a constant
This commit is contained in:
parent
86c6c48bd8
commit
0afb0c2ea4
21 changed files with 162 additions and 146 deletions
|
@ -152,7 +152,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)
|
||||
);
|
||||
|
@ -250,7 +250,7 @@ function onepoll_run(&$argv, &$argc){
|
|||
mark_for_death($contact);
|
||||
}
|
||||
else {
|
||||
if($contact['term-date'] != '0000-00-00 00:00:00') {
|
||||
if ($contact['term-date'] > NULL_DATE) {
|
||||
logger("poller: $url back from the dead - removing mark for death");
|
||||
unmark_for_death($contact);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue