Check for existing xf index in mapping array before accessing it

This commit is contained in:
Dennis Holst 2019-11-12 14:09:10 +01:00 committed by Adrien Crivelli
parent b636c56d7f
commit 3fc2fa47de
1 changed files with 1 additions and 1 deletions

View File

@ -3825,7 +3825,7 @@ class Xls extends BaseReader
} }
} }
if (!$this->readDataOnly && !$emptyCell) { if (!$this->readDataOnly && !$emptyCell && isset($this->mapCellXfIndex[$xfIndex])) {
// add style information // add style information
$cell->setXfIndex($this->mapCellXfIndex[$xfIndex]); $cell->setXfIndex($this->mapCellXfIndex[$xfIndex]);
} }