fixes a notice due to the forum variable not being defined before compacting

This commit is contained in:
Daniel Klabbers 2018-12-19 11:40:48 +01:00
parent 3468bdf511
commit 9eca9192ca

View File

@ -58,7 +58,7 @@ class Index
$apiDocument = $this->getApiDocument($request->getAttribute('actor'), $params);
$document->content = $this->view->make('flarum.forum::frontend.content.index', compact('apiDocument', 'page', 'forum'));
$document->content = $this->view->make('flarum.forum::frontend.content.index', compact('apiDocument', 'page'));
$document->payload['apiDocument'] = $apiDocument;
return $document;