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; }