Bugfixing
This commit is contained in:
parent
a6e7b5f295
commit
652a4ec9c7
1 changed files with 5 additions and 5 deletions
|
@ -1331,13 +1331,13 @@ class GContact
|
||||||
|
|
||||||
foreach ($poco['entry'] as $entries) {
|
foreach ($poco['entry'] as $entries) {
|
||||||
if (!empty($entries['urls'])) {
|
if (!empty($entries['urls'])) {
|
||||||
foreach ($entries['urls'] as $url) {
|
foreach ($entries['urls'] as $entry) {
|
||||||
if ($url['type'] == 'profile') {
|
if ($entry['type'] == 'profile') {
|
||||||
if (DBA::exists('gcontact', ['nurl' => Strings::normaliseLink(($url['value']))])) {
|
if (DBA::exists('gcontact', ['nurl' => Strings::normaliseLink(($entry['value']))])) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
Logger::info('Discover new PoCo contact', ['url' => $$url['value']]);
|
Logger::info('Discover new PoCo contact', ['url' => $entry['value']]);
|
||||||
Worker::add(PRIORITY_LOW, 'UpdateGContact', $$url['value']);
|
Worker::add(PRIORITY_LOW, 'UpdateGContact', $entry['value']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue