diff --git a/code/app/services/SiteContext.php b/code/app/services/SiteContext.php index 7bf4fa2..f74dac3 100644 --- a/code/app/services/SiteContext.php +++ b/code/app/services/SiteContext.php @@ -86,7 +86,7 @@ class SiteContext $this->TemplatesModel = TemplatesModel::getTemplateOnCacheByTId($this->DomainModel->t_id); - if (empty($this->DomainModel)) { + if (empty($this->TemplatesModel)) { throw new HttpException(500, 'Site template not Found'); }