From: yashodha Date: Mon, 18 Mar 2013 08:38:32 +0000 (+0530) Subject: CRM-9394 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=496f1dc45bb76abd46d0387ca2f1eabdb7fbaa94;p=civicrm-core.git CRM-9394 --- 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')); } }