Fix Pusher lib expecting empty object not array

This commit is contained in:
Alex Bouma 2018-12-07 20:38:17 +01:00
parent 1b1a23171d
commit a0ea0617f5
No known key found for this signature in database
GPG Key ID: AC101F160BEBEA17
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ class FetchChannelsController extends Controller
return [
'user_count' => count($channel->getUsers()),
];
})->toArray(),
})->toArray() ?: new \stdClass,
];
}
}