Merge pull request #1498 from Garrcomm/fix-sharepoint

Fix loading of Sharepoint document
This commit is contained in:
troosan 2018-11-25 01:40:12 +01:00 committed by GitHub
commit 78ffbff0c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -10,6 +10,7 @@ v0.16.0 (xx xxx 2018)
### Fixed ### Fixed
- Fix regex in `cloneBlock` function @nicoder #1269 - Fix regex in `cloneBlock` function @nicoder #1269
- HTML Title Writer loses text when Title contains a TextRun instead a string. @begnini #1436 - HTML Title Writer loses text when Title contains a TextRun instead a string. @begnini #1436
- Fix loading of Sharepoint document @Garrcomm #1498
- RTF writer: Round getPageSizeW and getPageSizeH to avoid decimals @Patrick64 #1493 - RTF writer: Round getPageSizeW and getPageSizeH to avoid decimals @Patrick64 #1493
- Fix parsing of Office 365 documents @Timanx #1485 - Fix parsing of Office 365 documents @Timanx #1485

View File

@ -62,6 +62,9 @@ class Word2007 extends AbstractReader implements ReaderInterface
foreach ($steps as $step) { foreach ($steps as $step) {
$stepPart = $step['stepPart']; $stepPart = $step['stepPart'];
$stepItems = $step['stepItems']; $stepItems = $step['stepItems'];
if (!isset($relationships[$stepPart])) {
continue;
}
foreach ($relationships[$stepPart] as $relItem) { foreach ($relationships[$stepPart] as $relItem) {
$relType = $relItem['type']; $relType = $relItem['type'];
if (isset($stepItems[$relType])) { if (isset($stepItems[$relType])) {