Skip to content

Commit

Permalink
Fix undefined offset 15
Browse files Browse the repository at this point in the history
  • Loading branch information
guga-grigolia committed Jun 26, 2017
1 parent 185bf41 commit 8a65196
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Classes/PHPExcel/Reader/Excel5.php
Original file line number Diff line number Diff line change
Expand Up @@ -3609,7 +3609,7 @@ private function readRow()
// 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 && isset($this->mapCellXfIndex[$xfIndex])) {
$this->phpSheet->getRowDimension($r + 1)->setXfIndex($this->mapCellXfIndex[$xfIndex]);
}
}
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "phpoffice/phpexcel",
"name": "omcrn/phpexcel",
"description": "PHPExcel - OpenXML - Read, Create and Write Spreadsheet documents in PHP - Spreadsheet engine",
"keywords": ["PHP","Excel","OpenXML","xlsx","xls","spreadsheet"],
"homepage": "https://github.com/PHPOffice/PHPExcel",
Expand Down

0 comments on commit 8a65196

Please sign in to comment.