Update src/Worker/UpdateServerDirectory.php

Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
2022.09-rc
Michael Vogel 2020-08-03 18:58:12 +02:00 zatwierdzone przez GitHub
rodzic cdf8a2f374
commit 22db644295
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 2 dodań i 5 usunięć

Wyświetl plik

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