kopia lustrzana https://github.com/friendica/friendica
Fixes "foreach() argument must be of type array|object, string given"
rodzic
805321d00b
commit
97b38b99df
|
@ -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