From a1f200de6c30f7da1dcdfa66f9e8515fd32d2c80 Mon Sep 17 00:00:00 2001 From: Alex Grintsvayg Date: Thu, 18 Aug 2016 14:05:32 -0400 Subject: [PATCH] also 404 for faq posts --- controller/action/ContentActions.class.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/controller/action/ContentActions.class.php b/controller/action/ContentActions.class.php index 07b216c1..5e8faf84 100644 --- a/controller/action/ContentActions.class.php +++ b/controller/action/ContentActions.class.php @@ -103,8 +103,11 @@ class ContentActions extends Actions public static function executeFaqPost($relativeUri) { - $post = Post::load(ltrim($relativeUri, '/')); - if (!$post) + try + { + $post = Post::load(ltrim($relativeUri, '/')); + } + catch (PostNotFoundException $e) { return ['page/404', []]; }