fixes #42. If csv has heading and offset is set, first row will always be parsed

This commit is contained in:
Susann Sgorzaly
2018-02-27 15:10:55 +01:00
parent 7766bf7c3b
commit 11b20a3144

View File

@@ -987,7 +987,8 @@ class Csv {
return
$this->sort_by !== null ||
$this->offset === null ||
$current_row >= $this->offset;
$current_row >= $this->offset ||
($this->heading && $current_row == 0);
}
/**