row added too early to output

This commit is contained in:
2017-06-29 14:43:03 +10:00
parent 22c07cc832
commit bb9942fd3b

View File

@@ -164,10 +164,10 @@ function booking_earlyaccess_csv_report() {
else { else {
$output[] = $field; $output[] = $field;
} }
}
$row = implode($delimiter, $output) . "\n"; $row = implode($delimiter, $output) . "\n";
$csv .= $row; $csv .= $row;
} }
}
//output the CSV to the browser //output the CSV to the browser
drupal_add_http_header("Content-type", "application/octet-stream; charset=utf-8"); drupal_add_http_header("Content-type", "application/octet-stream; charset=utf-8");