Merge pull request #15338 from totten/master-poc-postcommit
[civicrm-core.git] / CRM / Utils / Chart.php
index c8745fa0a5f0b745c958bbacea851f0311e43480..36fa6ea729fd8691683cc49c4119433b989afd89 100644 (file)
@@ -205,7 +205,7 @@ class CRM_Utils_Chart {
     }
 
     // rotate the x labels.
-    $chartData['xLabelAngle'] = CRM_Utils_Array::value('xLabelAngle', $rows, 0);
+    $chartData['xLabelAngle'] = $rows['xLabelAngle'] ?? 0;
     if (!empty($rows['tip'])) {
       $chartData['tip'] = $rows['tip'];
     }