missing header

This commit is contained in:
2017-06-29 14:43:35 +10:00
parent bb9942fd3b
commit 4cf96a2a68

View File

@@ -149,7 +149,7 @@ function booking_earlyaccess_csv_report() {
$result = $codelist_query->execute(); $result = $codelist_query->execute();
//calculate the header row for CSV //calculate the header row for CSV
$header = implode( $delimiter, array_keys($data)); $header = implode( $delimiter, array_keys($result));
$csv .= $header . "\n"; $csv .= $header . "\n";
//add the records //add the records