Skip to content

Commit fc41ddd

Browse files
author
Simone Todaro
committed
Fix undefined property
1 parent 5e7de01 commit fc41ddd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Importer/AbstractSpreadsheet.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public function getCollection()
6767
$collection = $this->model ? $this->model->newCollection() : collect([]);
6868

6969
foreach ($sheet->getRowIterator() as $rowindex => $row) {
70-
if ($rowindex == 1 && $this->header) {
70+
if ($rowindex == 1 && $this->hasHeaderRow) {
7171
$headers = $row;
7272
} else {
7373
$data = $this->parser->transform($row, $headers);
@@ -104,7 +104,7 @@ public function save($updateIfEquals = [])
104104
}
105105

106106
foreach ($sheet->getRowIterator() as $rowindex => $row) {
107-
if ($rowindex == 1 && $this->header) {
107+
if ($rowindex == 1 && $this->hasHeaderRow) {
108108
$headers = $row;
109109
} else {
110110
$data = $this->parser->transform($row, $headers);

0 commit comments

Comments
 (0)