From: Michael Date: Mon, 3 Aug 2020 16:03:51 +0000 (+0000) Subject: Fix Notice: " Undefined index: urls in /src/Worker/UpdateServerDirectory.php on line 64" X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=cdf8a2f37475400ba56c9f82f853e93dba39a4c3;p=friendica.git Fix Notice: " Undefined index: urls in /src/Worker/UpdateServerDirectory.php on line 64" --- diff --git a/src/Worker/UpdateServerDirectory.php b/src/Worker/UpdateServerDirectory.php index dd94aa52c7..90bd5c50a4 100644 --- a/src/Worker/UpdateServerDirectory.php +++ b/src/Worker/UpdateServerDirectory.php @@ -61,6 +61,9 @@ class UpdateServerDirectory $urls = []; foreach ($contacts['entry'] as $entry) { + if (empty($entry['urls'])) { + continue; + } foreach ($entry['urls'] as $url_entry) { if (empty($url_entry['type']) || empty($url_entry['value'])) { continue;