mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-07 15:54:26 +02:00
Merge pull request #14533 from annando/warning
Fixes "foreach() argument must be of type array|object, string given"
This commit is contained in:
commit
435c37bff4
1 changed files with 1 additions and 1 deletions
|
@ -76,7 +76,7 @@ class UpdateServerDirectory
|
||||||
}
|
}
|
||||||
|
|
||||||
$accounts = json_decode($result, true);
|
$accounts = json_decode($result, true);
|
||||||
if (empty($accounts)) {
|
if (!is_array($accounts)) {
|
||||||
Logger::info('No contacts', ['url' => $gserver['url']]);
|
Logger::info('No contacts', ['url' => $gserver['url']]);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue