kopia lustrzana https://github.com/friendica/friendica
Merge pull request #14533 from annando/warning
Fixes "foreach() argument must be of type array|object, string given"pull/14527/head
commit
435c37bff4
|
@ -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;
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue