From 12cc37ef45e0feeeea739350f45cd1854ce277f4 Mon Sep 17 00:00:00 2001 From: Sudha Bisht Date: Mon, 29 Jun 2015 12:36:34 +0530 Subject: [PATCH] Fix for event info message --- CRM/Event/Page/EventInfo.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CRM/Event/Page/EventInfo.php b/CRM/Event/Page/EventInfo.php index 014fd512bb..3bab4a99c0 100644 --- a/CRM/Event/Page/EventInfo.php +++ b/CRM/Event/Page/EventInfo.php @@ -79,7 +79,8 @@ class CRM_Event_Page_EventInfo extends CRM_Core_Page { if (!$values['event']['is_active']) { // form is inactive, die a fatal death - CRM_Core_Error::fatal(ts('The page you requested is currently unavailable.')); + CRM_Utils_System::setUFMessage(ts('The event you requested is currently unavailable (contact the site administrator for assistance).')); + return CRM_Utils_System::permissionDenied(); } if (!empty($values['event']['is_template'])) { -- 2.25.1