Fix Notice: " Undefined index: urls in /src/Worker/UpdateServerDirectory.php on line 64"

2022.09-rc
Michael 2020-08-03 16:03:51 +00:00
rodzic e033bcd2d3
commit cdf8a2f374
1 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

@ -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;