diff --git a/controllers/SiteController.php b/controllers/SiteController.php index cba3425..6ad6b8d 100644 --- a/controllers/SiteController.php +++ b/controllers/SiteController.php @@ -133,7 +133,7 @@ public function actionPage(string $url, int $preview = 0): string { $page = Page::findByUrl($url); - if ($page->deleted && empty($preview)) { + if (!empty($page->deleted) && empty($preview)) { throw new NotFoundHttpException(); }