X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FReport%2FForm%2FContribute%2FSummary.php;h=d15b69fae78b597c0785891209f09529dd3a89fd;hb=0d8afee278524bae3856993b85abe3e4208ea065;hp=3548ae6724586e845cd33386e2c93f839621db17;hpb=c52dca187fea48b67e5479f23e17bfd8206c42df;p=civicrm-core.git diff --git a/CRM/Report/Form/Contribute/Summary.php b/CRM/Report/Form/Contribute/Summary.php index 3548ae6724..d15b69fae7 100644 --- a/CRM/Report/Form/Contribute/Summary.php +++ b/CRM/Report/Form/Contribute/Summary.php @@ -609,8 +609,8 @@ ROUND(AVG({$this->_aliases['civicrm_contribution_soft']}.amount), 2) as civicrm_ if (CRM_Utils_Array::value('charts', $this->_params)) { if (CRM_Utils_Array::value('receive_date', $this->_params['group_bys'])) { - $contrib = CRM_Utils_Array::value('total_amount', $this->_params['fields']) ? TRUE : FALSE; - $softContrib = CRM_Utils_Array::value('soft_amount', $this->_params['fields']) ? TRUE : FALSE; + $contrib = !empty($this->_params['fields']['total_amount']) ? TRUE : FALSE; + $softContrib = !empty($this->_params['fields']['soft_amount']) ? TRUE : FALSE; foreach ($rows as $key => $row) { if ($row['civicrm_contribution_receive_date_subtotal']) {