$this->_instanceValues
);
if (empty($this->_instanceValues)) {
- CRM_Core_Error::fatal("Report could not be loaded.");
+ CRM_Core_Error::statusBounce("Report could not be loaded.");
}
$this->_title = $this->_instanceValues['title'];
if (!empty($this->_instanceValues['permission']) &&
// Do not display Report Settings section if administer Reports permission is absent OR
// if report instance is reserved and administer reserved reports absent
if (!CRM_Core_Permission::check('administer Reports') ||
- ($this->_instanceValues['is_reserved'] &&
+ (!empty($this->_instanceValues['is_reserved']) &&
!CRM_Core_Permission::check('administer reserved reports'))
) {
$this->_instanceForm = FALSE;
if (CRM_Core_Permission::check('administer Reports') ||
CRM_Core_Permission::check('access Report Criteria')
) {
- if (!$this->_instanceValues['is_reserved'] ||
+ if (empty($this->_instanceValues['is_reserved']) ||
CRM_Core_Permission::check('administer reserved reports')
) {
$this->assign('criteriaForm', TRUE);
*/
protected function storeGroupByArray() {
- if (!CRM_Utils_Array::value('group_bys', $this->_params)
+ if (empty($this->_params['group_bys'])
|| !is_array($this->_params['group_bys'])) {
$this->_params['group_bys'] = [];
}