Skip to content

Commit 78ffbff

Browse files
authored
Merge pull request #1498 from Garrcomm/fix-sharepoint
Fix loading of Sharepoint document
2 parents a7bfc8d + d0bcfea commit 78ffbff

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ v0.16.0 (xx xxx 2018)
1010
### Fixed
1111
- Fix regex in `cloneBlock` function @nicoder #1269
1212
- HTML Title Writer loses text when Title contains a TextRun instead a string. @begnini #1436
13+
- Fix loading of Sharepoint document @Garrcomm #1498
1314
- RTF writer: Round getPageSizeW and getPageSizeH to avoid decimals @Patrick64 #1493
1415
- Fix parsing of Office 365 documents @Timanx #1485
1516

src/PhpWord/Reader/Word2007.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ public function load($docFile)
6262
foreach ($steps as $step) {
6363
$stepPart = $step['stepPart'];
6464
$stepItems = $step['stepItems'];
65+
if (!isset($relationships[$stepPart])) {
66+
continue;
67+
}
6568
foreach ($relationships[$stepPart] as $relItem) {
6669
$relType = $relItem['type'];
6770
if (isset($stepItems[$relType])) {

0 commit comments

Comments
 (0)