Skip to content

Commit e1a30cf

Browse files
Update CSV.php
1 parent 53405cc commit e1a30cf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/CSV.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ function parse($data) {
104104
$tmpData = array();
105105
$i = 0;
106106
foreach($row as $key => $value) {
107-
if(isset($this->header[$i])) {
107+
if(isset($this->header[$i]) && $this->header[$i] != '') {
108108
$tmpData[$this->header[$i]] = $value;
109109
} else {
110110
$tmpData[count($tmpData)] = $value;

0 commit comments

Comments
 (0)