diff options
Diffstat (limited to 'utility/articleenhancer/articleenhancer.php')
-rw-r--r-- | utility/articleenhancer/articleenhancer.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/utility/articleenhancer/articleenhancer.php b/utility/articleenhancer/articleenhancer.php index 7565070f8..76bb0fa9f 100644 --- a/utility/articleenhancer/articleenhancer.php +++ b/utility/articleenhancer/articleenhancer.php @@ -88,11 +88,11 @@ abstract class ArticleEnhancer { * @return the result as a string */ protected function domToString($xpathResult) { - if($xpathResult->length > 0) { - return $this->toInnerHTML($xpathResult->item(0)); - } else { - return ""; + $result = ""; + foreach($xpathResult as $node) { + $result .= $this->toInnerHTML($node); } + return $result; } |