Fixes "foreach() argument must be of type array|object, string given"

pull/14533/head
Michael 2024-11-05 11:03:12 +00:00
rodzic 805321d00b
commit 97b38b99df
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

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