Fix a missing variable
This commit is contained in:
parent
d552db5c55
commit
96651ae76d
1 changed files with 5 additions and 5 deletions
|
@ -125,11 +125,6 @@ class OnePoll
|
||||||
$hub_update = false;
|
$hub_update = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
$last_update = (($contact['last-update'] <= DBA::NULL_DATETIME)
|
|
||||||
? DateTimeFormat::utc('now - 7 days', DateTimeFormat::ATOM)
|
|
||||||
: DateTimeFormat::utc($contact['last-update'], DateTimeFormat::ATOM)
|
|
||||||
);
|
|
||||||
|
|
||||||
Logger::log("poll: ({$protocol}-{$contact['id']}) IMPORTER: {$importer['name']}, CONTACT: {$contact['name']}");
|
Logger::log("poll: ({$protocol}-{$contact['id']}) IMPORTER: {$importer['name']}, CONTACT: {$contact['name']}");
|
||||||
|
|
||||||
$xml = '';
|
$xml = '';
|
||||||
|
@ -260,6 +255,11 @@ class OnePoll
|
||||||
DBA::update('contact', $fields, ['id' => $contact['id']]);
|
DBA::update('contact', $fields, ['id' => $contact['id']]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$last_update = (($contact['last-update'] <= DBA::NULL_DATETIME)
|
||||||
|
? DateTimeFormat::utc('now - 7 days', DateTimeFormat::ATOM)
|
||||||
|
: DateTimeFormat::utc($contact['last-update'], DateTimeFormat::ATOM)
|
||||||
|
);
|
||||||
|
|
||||||
$url = $contact['poll'] . '?dfrn_id=' . $idtosend
|
$url = $contact['poll'] . '?dfrn_id=' . $idtosend
|
||||||
. '&dfrn_version=' . DFRN_PROTOCOL_VERSION
|
. '&dfrn_version=' . DFRN_PROTOCOL_VERSION
|
||||||
. '&type=data&last_update=' . $last_update
|
. '&type=data&last_update=' . $last_update
|
||||||
|
|
Loading…
Reference in a new issue