H5: Survive profile load if no h5 relation exists

parent 3f371faa
Pipeline #995 passed with stages
in 2 minutes and 11 seconds
......@@ -45,7 +45,11 @@ class ProfileController extends Controller
'gamertag' => $account->gamertag,
]);
$seasons = new SeasonCollection($account, $account->h5->playlists);
if ($account->h5 === null) {
$this->dispatch(new UpdateHalo5Account($account));
}
$seasons = new SeasonCollection($account, $account->h5->playlists ?? []);
if ($account->h5->disabled) {
return view('errors.404', [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment