From 496f1dc45bb76abd46d0387ca2f1eabdb7fbaa94 Mon Sep 17 00:00:00 2001 From: yashodha Date: Mon, 18 Mar 2013 14:08:32 +0530 Subject: [PATCH] CRM-9394 --- CRM/Report/Page/Report.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/CRM/Report/Page/Report.php b/CRM/Report/Page/Report.php index ce839a81e5..a9f70b3c08 100644 --- a/CRM/Report/Page/Report.php +++ b/CRM/Report/Page/Report.php @@ -47,18 +47,16 @@ class CRM_Report_Page_Report extends CRM_Core_Page { */ function run() { if (!CRM_Core_Permission::check('administer Reports')) { - return CRM_Utils_System::redirect(CRM_Utils_System::url('civicrm/report/list', "reset=1")); + return CRM_Utils_System::redirect(CRM_Utils_System::url('civicrm/report/list', 'reset=1')); } $optionVal = CRM_Report_Utils_Report::getValueFromUrl(); - - $templateInfo = CRM_Core_OptionGroup::getRowValues('report_template', "{$optionVal}", 'value', 'String', FALSE ); - $extKey = strpos($templateInfo['name'], '.'); + $extKey = strpos(CRM_Utils_Array::value('name', $templateInfo), '.'); $reportClass = NULL; @@ -83,7 +81,7 @@ class CRM_Report_Page_Report extends CRM_Core_Page { if ($optionVal) { CRM_Core_Session::setStatus(ts('Could not find the report template. Make sure the report template is registered and / or url is correct.'), ts('Template Not Found'), 'error'); } - return CRM_Utils_System::redirect(CRM_Utils_System::url('civicrm/report/list', "reset=1")); + return CRM_Utils_System::redirect(CRM_Utils_System::url('civicrm/report/list', 'reset=1')); } } -- 2.25.1