diff --git a/code/Controllers/ContentController.php b/code/Controllers/ContentController.php index 3d544935..69da7a8c 100644 --- a/code/Controllers/ContentController.php +++ b/code/Controllers/ContentController.php @@ -435,8 +435,8 @@ HTML; public function getViewer($action) { // Manually set templates should be dealt with by Controller::getViewer() - if (isset($this->templates[$action]) && $this->templates[$action] - || (isset($this->templates['index']) && $this->templates['index']) + if (!empty($this->templates[$action]) + || !empty($this->templates['index']) || $this->template ) { return parent::getViewer($action);