Skip to content

Commit bad0cc6

Browse files
Update CSV.php
1 parent 7060bd3 commit bad0cc6

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/CSV.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,8 @@ function toCsv(array $header=NULL) : string {
339339
$parseHeader[$tmpCol] = $tmpHeader[$col];
340340
}
341341
}
342+
} else {
343+
$parseHeader = $this->header;
342344
}
343345
if(!empty($parseHeader)) {
344346
$csvData .= implode($this->delimiter, $parseHeader).PHP_EOL;

0 commit comments

Comments
 (0)