diff --git a/Controller/BackendController.php b/Controller/BackendController.php index 95a3aa5..9d1cde7 100755 --- a/Controller/BackendController.php +++ b/Controller/BackendController.php @@ -135,7 +135,7 @@ final class BackendController extends Controller implements DashboardElementInte ); // allow comments - if (!$article->getComments() !== null + if (!$article->comments !== null && !($this->app->moduleManager->get('Comments') instanceof NullModule) ) { $commentCreateView = new \Modules\Comments\Theme\Backend\Components\Comment\CreateView($this->app->l11nManager, $request, $response); diff --git a/Theme/Backend/news-single.tpl.php b/Theme/Backend/news-single.tpl.php index 40d15ee..bae2c05 100755 --- a/Theme/Backend/news-single.tpl.php +++ b/Theme/Backend/news-single.tpl.php @@ -54,7 +54,7 @@ echo $this->getData('nav')->render(); ?> getComments(); +$commentList = $news->comments; if (!empty($commentList) && $commentList->isActive()) : /* @todo: check if user has permission to create a comment here, maybe he is only allowed to read comments */ echo $this->getData('commentCreate')->render(1);