Unverified Commit efa7c32c authored by Nicolas Widart's avatar Nicolas Widart Committed by GitHub

Merge pull request #535 from Fisiu/draft-pages

Check page status if page exists.
parents 6ce3f867 7b9eed26
...@@ -89,7 +89,7 @@ class PublicController extends BasePublicController ...@@ -89,7 +89,7 @@ class PublicController extends BasePublicController
*/ */
private function throw404IfNotFound($page) private function throw404IfNotFound($page)
{ {
if ($page->status == 0 || is_null($page)) { if (is_null($page) || $page->status == 0) {
$this->app->abort('404'); $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