From 9eca9192ca98232750dd9b353106be0f8cd95b6f Mon Sep 17 00:00:00 2001 From: Daniel Klabbers Date: Wed, 19 Dec 2018 11:40:48 +0100 Subject: [PATCH] fixes a notice due to the forum variable not being defined before compacting --- src/Forum/Content/Index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Forum/Content/Index.php b/src/Forum/Content/Index.php index 11b5a4b50..8818265c9 100644 --- a/src/Forum/Content/Index.php +++ b/src/Forum/Content/Index.php @@ -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;