Skip to content

Commit 5d5c874

Browse files
committed
fix empty columns
1 parent d1ca271 commit 5d5c874

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Maatwebsite/Excel/Excel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -784,7 +784,7 @@ private function parseCells()
784784
$index = \PHPExcel_Cell::columnIndexFromString($this->cell->getColumn());
785785

786786
// Check how we need to save the parsed array
787-
if($this->firstRowAsLabel !== false)
787+
if($this->firstRowAsLabel !== false and isset($this->labels[$i]))
788788
{
789789
// Set label index
790790
$index = $this->labels[$i];

0 commit comments

Comments
 (0)