From fc66a7df434f547511f9129a052088e2fc9f210e Mon Sep 17 00:00:00 2001 From: tbreuss Date: Thu, 22 Jun 2023 21:45:54 +0200 Subject: [PATCH] fix: phpstan issue --- controllers/SiteController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); }