Update src/Worker/UpdateServerDirectory.php
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
This commit is contained in:
parent
cdf8a2f374
commit
22db644295
1 changed files with 2 additions and 5 deletions
|
@ -60,11 +60,8 @@ class UpdateServerDirectory
|
||||||
Logger::info('PoCo discovery started', ['poco' => $gserver['poco']]);
|
Logger::info('PoCo discovery started', ['poco' => $gserver['poco']]);
|
||||||
|
|
||||||
$urls = [];
|
$urls = [];
|
||||||
foreach ($contacts['entry'] as $entry) {
|
foreach (array_column($contacts['entry'], 'urls') as $urls) {
|
||||||
if (empty($entry['urls'])) {
|
foreach ($urls as $url_entry) {
|
||||||
continue;
|
|
||||||
}
|
|
||||||
foreach ($entry['urls'] as $url_entry) {
|
|
||||||
if (empty($url_entry['type']) || empty($url_entry['value'])) {
|
if (empty($url_entry['type']) || empty($url_entry['value'])) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue