mirror of
https://github.com/friendica/friendica
synced 2024-12-22 18:00:16 +00:00
Fixes "foreach() argument must be of type array|object, string given"
This commit is contained in:
parent
805321d00b
commit
97b38b99df
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue