Skip to content

Commit

Permalink
Check for existing xf index in mapping array before accessing it
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennis Holst authored and PowerKiKi committed Nov 17, 2019
1 parent b636c56 commit 3fc2fa4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PhpSpreadsheet/Reader/Xls.php
Original file line number Diff line number Diff line change
Expand Up @@ -3825,7 +3825,7 @@ private function readLabelSst()
}
}

if (!$this->readDataOnly && !$emptyCell) {
if (!$this->readDataOnly && !$emptyCell && isset($this->mapCellXfIndex[$xfIndex])) {
// add style information
$cell->setXfIndex($this->mapCellXfIndex[$xfIndex]);
}
Expand Down

0 comments on commit 3fc2fa4

Please sign in to comment.