From 97b38b99df8313b94b5b70b63e16960532fd3808 Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 5 Nov 2024 11:03:12 +0000 Subject: [PATCH] Fixes "foreach() argument must be of type array|object, string given" --- src/Worker/UpdateServerDirectory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }