Fix undefined index exceprtion in readRow()
It's possible undefined index exception in $this->mapCellXfIndex.
This commit is contained in:
parent
8fc7de7358
commit
1a2a6816fb
|
@ -3516,7 +3516,7 @@ class Excel5 extends BaseReader implements IReader
|
|||
// bit: 27-16; mask: 0x0FFF0000; only applies when hasExplicitFormat = 1; index to XF record
|
||||
$xfIndex = (0x0FFF0000 & self::getInt4d($recordData, 12)) >> 16;
|
||||
|
||||
if ($hasExplicitFormat) {
|
||||
if ($hasExplicitFormat && $this->mapCellXfIndex[$xfIndex]) {
|
||||
$this->phpSheet->getRowDimension($r + 1)->setXfIndex($this->mapCellXfIndex[$xfIndex]);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue