Skip to content

Commit e6496bf

Browse files
authored
Merge pull request #1537 from isometriks/patch-1
[WIP] Still add text if link missing
2 parents 0db21ae + b1661af commit e6496bf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/PhpWord/Reader/Word2007/AbstractPart.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,8 @@ protected function readRunChild(XMLReader $xmlReader, \DOMElement $node, Abstrac
297297
$target = $this->getMediaTarget($docPart, $rId);
298298
if (!is_null($target)) {
299299
$parent->addLink($target, $textContent, $fontStyle, $paragraphStyle);
300+
} else {
301+
$parent->addText($textContent, $fontStyle, $paragraphStyle);
300302
}
301303
} else {
302304
/** @var AbstractElement $element */

0 commit comments

Comments
 (0)