From: Michael Vogel Date: Mon, 3 Aug 2020 16:58:12 +0000 (+0200) Subject: Update src/Worker/UpdateServerDirectory.php X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=22db644295ada6e2f8e3203cae0e8bebb3ed0377;p=friendica.git Update src/Worker/UpdateServerDirectory.php Co-authored-by: Hypolite Petovan --- diff --git a/src/Worker/UpdateServerDirectory.php b/src/Worker/UpdateServerDirectory.php index 90bd5c50a4..1244e2c2c0 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 $urls) { + foreach ($urls as $url_entry) { if (empty($url_entry['type']) || empty($url_entry['value'])) { continue; }