From: Alexander Ebert Date: Mon, 23 Jan 2017 11:36:06 +0000 (+0100) Subject: Fixed DOMNodeList access in PHP 5.5 X-Git-Tag: 3.0.2~73 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4aaff127a77bd94c4543e2bb11b1618a81e3ebfa;p=GitHub%2FWoltLab%2FWCF.git Fixed DOMNodeList access in PHP 5.5 --- diff --git a/wcfsetup/install/files/lib/system/html/node/AbstractHtmlNodeProcessor.class.php b/wcfsetup/install/files/lib/system/html/node/AbstractHtmlNodeProcessor.class.php index fa7d012de3..89d3e947f0 100644 --- a/wcfsetup/install/files/lib/system/html/node/AbstractHtmlNodeProcessor.class.php +++ b/wcfsetup/install/files/lib/system/html/node/AbstractHtmlNodeProcessor.class.php @@ -80,7 +80,7 @@ abstract class AbstractHtmlNodeProcessor implements IHtmlNodeProcessor { $pres = $this->document->getElementsByTagName('pre'); for ($i = 0, $length = $pres->length; $i < $length; $i++) { /** @var \DOMElement $pre */ - $pre = $pres[$i]; + $pre = $pres->item($i); /** @var \DOMNode $node */ foreach ($pre->childNodes as $node) { if ($node->nodeType === XML_TEXT_NODE && mb_strpos($node->textContent, '@@@WCF_PRE_LINEBREAK@@@') !== false) {