Merge pull request #19115 from totten/master-api4-perm
[civicrm-core.git] / CRM / Contribute / Form / ContributionCharts.php
index bdddaa2616bfac06f5c04aff43285579919e1602..84da27929de7342d8db1d3daab5407d0f2577304 100644 (file)
@@ -214,7 +214,7 @@ class CRM_Contribute_Form_ContributionCharts extends CRM_Core_Form {
     // finally assign this chart data to template.
     $this->assign('hasYearlyChart', $yearlyChart);
     $this->assign('hasByMonthChart', $monthlyChart);
-    $this->assign('hasChart', empty($chartData) ? FALSE : TRUE);
+    $this->assign('hasChart', !empty($chartData));
     $this->assign('chartData', json_encode($chartData ?? []));
   }