From: laryn Date: Wed, 17 Oct 2018 15:36:38 +0000 (-0500) Subject: PHP 7.1 bugfix: undeclared array subdimension with batch CSV export X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=0ff90849eb21957323a4af92be6782e57d398cb2;p=civicrm-core.git PHP 7.1 bugfix: undeclared array subdimension with batch CSV export --- diff --git a/CRM/Financial/BAO/ExportFormat/CSV.php b/CRM/Financial/BAO/ExportFormat/CSV.php index 6f3b88b781..4d22cbd2e6 100644 --- a/CRM/Financial/BAO/ExportFormat/CSV.php +++ b/CRM/Financial/BAO/ExportFormat/CSV.php @@ -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;