]> git.mxchange.org Git - friendica.git/commitdiff
Fix Notice: " Undefined index: urls in /src/Worker/UpdateServerDirectory.php on line 64"
authorMichael <heluecht@pirati.ca>
Mon, 3 Aug 2020 16:03:51 +0000 (16:03 +0000)
committerMichael <heluecht@pirati.ca>
Mon, 3 Aug 2020 16:03:51 +0000 (16:03 +0000)
src/Worker/UpdateServerDirectory.php

index dd94aa52c7a8555e17dbe2b9ba7c29127311aa6d..90bd5c50a4de9242bf32c153059c773279e2b15b 100644 (file)
@@ -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;