File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
src/PhpSpreadsheet/Reader Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1010### Fixed
1111
1212- Allow iterators to go out of bounds with prev - [ #587 ] ( https://github.com/PHPOffice/PhpSpreadsheet/issues/587 )
13+ - Fix warning when reading xlsx without styles - [ #631 ] ( https://github.com/PHPOffice/PhpSpreadsheet/pull/631 )
1314
1415## [ 1.4.0] - 2018-08-06
1516
Original file line number Diff line number Diff line change @@ -643,7 +643,7 @@ public function load($pFilename)
643643 $ excel ->addCellXf ($ objStyle );
644644 }
645645
646- foreach ($ xmlStyles ->cellStyleXfs ->xf as $ xf ) {
646+ foreach (isset ( $ xmlStyles ->cellStyleXfs ->xf ) ? $ xmlStyles -> cellStyleXfs -> xf : [] as $ xf ) {
647647 $ numFmt = NumberFormat::FORMAT_GENERAL ;
648648 if ($ numFmts && $ xf ['numFmtId ' ]) {
649649 $ tmpNumFmt = self ::getArrayItem ($ numFmts ->xpath ("sml:numFmt[@numFmtId= $ xf [numFmtId]] " ));
You can’t perform that action at this time.
0 commit comments