remove unnecessary quote
This commit is contained in:
@@ -835,7 +835,9 @@ function booking_csv_report() {
|
|||||||
//handle dates
|
//handle dates
|
||||||
if ($key == 'booking_dob') {
|
if ($key == 'booking_dob') {
|
||||||
$output[] = format_date($value, 'custom', 'd/m/Y');
|
$output[] = format_date($value, 'custom', 'd/m/Y');
|
||||||
$output[] = '"' . _booking_avg_age($value, 1, $event->booking_event_start) . '"';
|
// Add in the processed DOB
|
||||||
|
$output[] = _booking_avg_age($value, 1, $event->booking_event_start);
|
||||||
|
//$output[] = '"' . _booking_avg_age($value, 1, $event->booking_event_start) . '"';
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -914,7 +916,7 @@ function booking_csv_report() {
|
|||||||
//$csv .= $row;
|
//$csv .= $row;
|
||||||
}
|
}
|
||||||
|
|
||||||
watchdog('booking_debug', "<pre>CSV report spreadsheet rows\n@info</pre>", array('@info' => print_r( $rows, true)));
|
//watchdog('booking_debug', "<pre>CSV report spreadsheet rows\n@info</pre>", array('@info' => print_r( $rows, true)));
|
||||||
|
|
||||||
// Create headers for Excel spreadsheet
|
// Create headers for Excel spreadsheet
|
||||||
header('Content-disposition: attachment; filename="'.XLSXWriter::sanitize_filename($filename).'"');
|
header('Content-disposition: attachment; filename="'.XLSXWriter::sanitize_filename($filename).'"');
|
||||||
|
Reference in New Issue
Block a user