]> git.mxchange.org Git - friendica.git/commitdiff
Bugfixing
authorMichael <heluecht@pirati.ca>
Thu, 5 Mar 2020 22:17:17 +0000 (22:17 +0000)
committerMichael <heluecht@pirati.ca>
Thu, 5 Mar 2020 22:17:17 +0000 (22:17 +0000)
src/Model/GContact.php

index bd2d14064eb4ea8fb1afc9f4e597ee60c8902f29..dc62ec460f7120dc54887fb0f063635685d362a7 100644 (file)
@@ -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']);
                                        }
                                }
                        }