Skip to content

Commit

Permalink
Fix index overflow on data values array
Browse files Browse the repository at this point in the history
Fix index overflow on data values array for multi level detection.

Fixes #747
Fixes #748
  • Loading branch information
guillaume-ro-fr authored and PowerKiKi committed Nov 11, 2018
1 parent e4ffeb4 commit 3bea6f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ and this project adheres to [Semantic Versioning](https://semver.org).
- Fix print area parser for XLSX reader - [#734](https://github.com/PHPOffice/PhpSpreadsheet/pull/734)
- Support overriding `DefaultValueBinder::dataTypeForValue()` without overriding `DefaultValueBinder::bindValue()` - [#735](https://github.com/PHPOffice/PhpSpreadsheet/pull/735)
- Mpdf export can exceed pcre.backtrack_limit - [#637](https://github.com/PHPOffice/PhpSpreadsheet/issues/637)
- Fix index overflow on data values array - [#748](https://github.com/PHPOffice/PhpSpreadsheet/pull/748)

## [1.5.0] - 2018-10-21

Expand Down
2 changes: 1 addition & 1 deletion src/PhpSpreadsheet/Chart/DataSeriesValues.php
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ public function setLineWidth($width)
public function isMultiLevelSeries()
{
if (count($this->dataValues) > 0) {
return is_array($this->dataValues[0]);
return is_array(array_values($this->dataValues)[0]);
}

return null;
Expand Down

0 comments on commit 3bea6f5

Please sign in to comment.