diff --git a/src/HttpApi/Controllers/FetchChannelsController.php b/src/HttpApi/Controllers/FetchChannelsController.php index 937000e..22d8c1f 100644 --- a/src/HttpApi/Controllers/FetchChannelsController.php +++ b/src/HttpApi/Controllers/FetchChannelsController.php @@ -25,7 +25,7 @@ class FetchChannelsController extends Controller return [ 'user_count' => count($channel->getUsers()), ]; - })->toArray(), + })->toArray() ?: new \stdClass, ]; } }