PHP 7.1 bugfix: undeclared array subdimension with batch CSV export
authorlaryn <laryn@cedc.org>
Wed, 17 Oct 2018 15:36:38 +0000 (10:36 -0500)
committerlaryn <laryn@cedc.org>
Wed, 17 Oct 2018 15:36:38 +0000 (10:36 -0500)
CRM/Financial/BAO/ExportFormat/CSV.php

index 6f3b88b7813ec6142ecca5cbd96e97c52c1ebdb3..4d22cbd2e60d7b844f1cff8fd3f738456f39a68c 100644 (file)
@@ -160,7 +160,7 @@ class CRM_Financial_BAO_ExportFormat_CSV extends CRM_Financial_BAO_ExportFormat
    */
   public function formatHeaders($values) {
     $arrayKeys = array_keys($values);
-    $headers = '';
+    $headers = array();
     if (!empty($arrayKeys)) {
       foreach ($values[$arrayKeys[0]] as $title => $value) {
         $headers[] = $title;