From f1c672e12d77e6716660a70c714072ff6831f919 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 --- framework/core/src/Forum/Content/Index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/core/src/Forum/Content/Index.php b/framework/core/src/Forum/Content/Index.php index 11b5a4b50..8818265c9 100644 --- a/framework/core/src/Forum/Content/Index.php +++ b/framework/core/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;