Commit 7b9eed26 authored by Mariusz Fik's avatar Mariusz Fik

Check page status if page exists.

Signed-off-by: 's avatarMariusz Fik <mariusz@fidano.pl>
parent 7a91d624
......@@ -89,7 +89,7 @@ class PublicController extends BasePublicController
*/
private function throw404IfNotFound($page)
{
if ($page->status == 0 || is_null($page)) {
if (is_null($page) || $page->status == 0) {
$this->app->abort('404');
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment