diff --git a/Modules/Page/Http/Controllers/PublicController.php b/Modules/Page/Http/Controllers/PublicController.php index 61ae6cc7b..430c5ea72 100644 --- a/Modules/Page/Http/Controllers/PublicController.php +++ b/Modules/Page/Http/Controllers/PublicController.php @@ -89,7 +89,7 @@ private function getTemplateForPage($page) */ private function throw404IfNotFound($page) { - if ($page->status == 0 || is_null($page)) { + if (is_null($page) || $page->status == 0) { $this->app->abort('404'); } }