X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FWorker%2FUpdateServerDirectory.php;h=21599b533e65c2a10d46ac22ee4a875c0fec0361;hb=018abb4d1dfbe0bf29b441dce281d89a437075b4;hp=90bd5c50a4de9242bf32c153059c773279e2b15b;hpb=cdf8a2f37475400ba56c9f82f853e93dba39a4c3;p=friendica.git diff --git a/src/Worker/UpdateServerDirectory.php b/src/Worker/UpdateServerDirectory.php index 90bd5c50a4..21599b533e 100644 --- a/src/Worker/UpdateServerDirectory.php +++ b/src/Worker/UpdateServerDirectory.php @@ -60,11 +60,8 @@ class UpdateServerDirectory Logger::info('PoCo discovery started', ['poco' => $gserver['poco']]); $urls = []; - foreach ($contacts['entry'] as $entry) { - if (empty($entry['urls'])) { - continue; - } - foreach ($entry['urls'] as $url_entry) { + foreach (array_column($contacts['entry'], 'urls') as $url_entries) { + foreach ($url_entries as $url_entry) { if (empty($url_entry['type']) || empty($url_entry['value'])) { continue; }