Merge pull request #8149 from annando/fix-warning

Fix: unknown variable
This commit is contained in:
Hypolite Petovan 2020-01-21 14:58:32 -05:00 committed by GitHub
commit 4f29e4c4a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -902,7 +902,7 @@ class GContact
$curlResult = Network::curl($data['poll']);
if (!$curlResult->isSuccess()) {
$fields = ['last_failure' => DateTimeFormat::utcNow()];
DBA::update('gcontact', $fields, ['nurl' => Strings::normaliseLink($profile)]);
DBA::update('gcontact', $fields, ['nurl' => Strings::normaliseLink($data['url'])]);
Logger::info("Profile wasn't reachable (no feed)", ['url' => $data['url']]);
return;