diff --git a/flextype/Content.php b/flextype/Content.php index df545c61..f69bd433 100755 --- a/flextype/Content.php +++ b/flextype/Content.php @@ -183,7 +183,7 @@ class Content $page = Content::processPage($file_path); // Get 404 page if page is not published - if (isset($page['visibility']) && $page['visibility'] === 'visible') { + if (isset($page['visibility']) && $page['visibility'] === 'draft') { if (Filesystem::fileExists($file_path = PATH['pages'] . '/404/page.html')) { $page = Content::processPage($file_path); Http::setResponseStatus(404);