Skip to content

Commit

Permalink
Merge pull request #535 from Fisiu/draft-pages
Browse files Browse the repository at this point in the history
Check page status if page exists.
  • Loading branch information
nWidart authored Jun 21, 2018
2 parents 6ce3f86 + 7b9eed2 commit efa7c32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Modules/Page/Http/Controllers/PublicController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
}
Expand Down

0 comments on commit efa7c32

Please sign in to comment.