row added too early to output
This commit is contained in:
@@ -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");
|
||||||
|
Reference in New Issue
Block a user