File tree 2 files changed +2
-1
lines changed
src/PhpSpreadsheet/Reader
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/).
10
10
### Fixed
11
11
12
12
- 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 )
13
14
14
15
## [ 1.4.0] - 2018-08-06
15
16
Original file line number Diff line number Diff line change @@ -643,7 +643,7 @@ public function load($pFilename)
643
643
$ excel ->addCellXf ($ objStyle );
644
644
}
645
645
646
- foreach ($ xmlStyles ->cellStyleXfs ->xf as $ xf ) {
646
+ foreach (isset ( $ xmlStyles ->cellStyleXfs ->xf ) ? $ xmlStyles -> cellStyleXfs -> xf : [] as $ xf ) {
647
647
$ numFmt = NumberFormat::FORMAT_GENERAL ;
648
648
if ($ numFmts && $ xf ['numFmtId ' ]) {
649
649
$ tmpNumFmt = self ::getArrayItem ($ numFmts ->xpath ("sml:numFmt[@numFmtId= $ xf [numFmtId]] " ));
You can’t perform that action at this time.
0 commit comments