Merge pull request #8968 from annando/fix-fatal

Fiy fatal error
This commit is contained in:
Hypolite Petovan 2020-08-04 02:08:46 -04:00 committed by GitHub
commit 977ad51afd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -60,8 +60,8 @@ class UpdateServerDirectory
Logger::info('PoCo discovery started', ['poco' => $gserver['poco']]);
$urls = [];
foreach (array_column($contacts['entry'], 'urls') as $urls) {
foreach ($urls as $url_entry) {
foreach (array_column($contacts['entry'], 'urls') as $url_entries) {
foreach ($url_entries as $url_entry) {
if (empty($url_entry['type']) || empty($url_entry['value'])) {
continue;
}