try fixing empty columns in CSV output
This commit is contained in:
@@ -599,7 +599,7 @@ function booking_varietysessions_csv_report($timeslot_id) {
|
|||||||
for ($i = 0; $i < max($maximums); $i++) {
|
for ($i = 0; $i < max($maximums); $i++) {
|
||||||
$output = array();
|
$output = array();
|
||||||
foreach ($header_array as $column) {
|
foreach ($header_array as $column) {
|
||||||
$field = isset($data[$column][$i]) ? $data[$column][$i] : '';
|
$field = isset($data[$column][$i]) ? $data[$column][$i] : ' ';
|
||||||
|
|
||||||
//enclose $field if necessary
|
//enclose $field if necessary
|
||||||
if ( $encloseAll || preg_match( "/(?:${delimiter_esc}|${enclosure_esc}|\s)/", $field ) ) {
|
if ( $encloseAll || preg_match( "/(?:${delimiter_esc}|${enclosure_esc}|\s)/", $field ) ) {
|
||||||
|
Reference in New Issue
Block a user