]> git.mxchange.org Git - friendica.git/commitdiff
Fixes "foreach() argument must be of type array|object, string given"
authorMichael <heluecht@pirati.ca>
Tue, 5 Nov 2024 11:03:12 +0000 (11:03 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 5 Nov 2024 19:10:32 +0000 (19:10 +0000)
src/Worker/UpdateServerDirectory.php

index d907c4b5c0dd398be040b15bccc5e9a5bbec6bb2..cf3634d878aff0b48bf129d253254ffe1572a434 100644 (file)
@@ -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;
                }