From 96651ae76d4bc53b5acc0e6d4be03e3e9519e394 Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 28 Jun 2019 02:46:56 +0000 Subject: [PATCH] Fix a missing variable --- src/Worker/OnePoll.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Worker/OnePoll.php b/src/Worker/OnePoll.php index eb00447d39..dccf248c6b 100644 --- a/src/Worker/OnePoll.php +++ b/src/Worker/OnePoll.php @@ -125,11 +125,6 @@ class OnePoll $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']}"); $xml = ''; @@ -260,6 +255,11 @@ class OnePoll 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 . '&dfrn_version=' . DFRN_PROTOCOL_VERSION . '&type=data&last_update=' . $last_update -- 2.39.5