Merge pull request #14533 from annando/warning

Fixes "foreach() argument must be of type array|object, string given"
This commit is contained in:
Tobias Diekershoff 2024-11-06 06:29:04 +01:00 committed by GitHub
commit 435c37bff4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -76,7 +76,7 @@ class UpdateServerDirectory
}
$accounts = json_decode($result, true);
if (empty($accounts)) {
if (!is_array($accounts)) {
Logger::info('No contacts', ['url' => $gserver['url']]);
return;
}