Merge pull request #8965 from annando/notice
Fix Notice: " Undefined index: urls in /src/Worker/UpdateServerDirectory.php on line 64"
This commit is contained in:
@@ -60,8 +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) {
|
||||||
foreach ($entry['urls'] as $url_entry) {
|
foreach ($urls as $url_entry) {
|
||||||
if (empty($url_entry['type']) || empty($url_entry['value'])) {
|
if (empty($url_entry['type']) || empty($url_entry['value'])) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user