Skip to content

Commit

Permalink
fix: phpstan issue
Browse files Browse the repository at this point in the history
  • Loading branch information
tbreuss committed Jun 22, 2023
1 parent 4a7dca9 commit fc66a7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/SiteController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit fc66a7d

Please sign in to comment.