*/
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;
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'));
}
}