[FIXED] Wrong use of passing by reference.
This commit is contained in:
parent
47a17a33e8
commit
1b9b8d4f90
|
|
@ -166,15 +166,13 @@ abstract class AbstractPart
|
|||
if ($runLinkCount == 0) {
|
||||
$parent->addTextBreak(null, $paragraphStyle);
|
||||
} else {
|
||||
$textParent = $parent;
|
||||
if ($runLinkCount > 1) {
|
||||
$textParent = &$parent->addTextRun($paragraphStyle);
|
||||
}
|
||||
$nodes = $xmlReader->getElements('*', $domNode);
|
||||
foreach ($nodes as $node) {
|
||||
$this->readRun(
|
||||
$xmlReader,
|
||||
$node,
|
||||
($runLinkCount > 1) ? $parent->addTextRun($paragraphStyle) : $parent,
|
||||
$docPart,
|
||||
$paragraphStyle
|
||||
);
|
||||
$this->readRun($xmlReader, $node, $textParent, $docPart, $paragraphStyle);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue