From: Michael Date: Tue, 5 Nov 2024 11:03:12 +0000 (+0000) Subject: Fixes "foreach() argument must be of type array|object, string given" X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=97b38b99df8313b94b5b70b63e16960532fd3808;p=friendica.git Fixes "foreach() argument must be of type array|object, string given" --- diff --git a/src/Worker/UpdateServerDirectory.php b/src/Worker/UpdateServerDirectory.php index d907c4b5c0..cf3634d878 100644 --- a/src/Worker/UpdateServerDirectory.php +++ b/src/Worker/UpdateServerDirectory.php @@ -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; }