From 652a4ec9c7d4fa5aa191d7b1f1bbf29d503c7abf Mon Sep 17 00:00:00 2001 From: Michael Date: Thu, 5 Mar 2020 22:17:17 +0000 Subject: [PATCH] Bugfixing --- src/Model/GContact.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Model/GContact.php b/src/Model/GContact.php index bd2d14064e..dc62ec460f 100644 --- a/src/Model/GContact.php +++ b/src/Model/GContact.php @@ -1331,13 +1331,13 @@ class GContact foreach ($poco['entry'] as $entries) { if (!empty($entries['urls'])) { - foreach ($entries['urls'] as $url) { - if ($url['type'] == 'profile') { - if (DBA::exists('gcontact', ['nurl' => Strings::normaliseLink(($url['value']))])) { + foreach ($entries['urls'] as $entry) { + if ($entry['type'] == 'profile') { + if (DBA::exists('gcontact', ['nurl' => Strings::normaliseLink(($entry['value']))])) { continue; } - Logger::info('Discover new PoCo contact', ['url' => $$url['value']]); - Worker::add(PRIORITY_LOW, 'UpdateGContact', $$url['value']); + Logger::info('Discover new PoCo contact', ['url' => $entry['value']]); + Worker::add(PRIORITY_LOW, 'UpdateGContact', $entry['value']); } } }