From 952605d2201830ff1cff2634b19cf0f9adcfd42b Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Tue, 4 Oct 2016 10:11:40 +0200 Subject: [PATCH] PHP 5.5 compatibility --- .../html/metacode/converter/ListMetacodeConverter.class.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/wcfsetup/install/files/lib/system/html/metacode/converter/ListMetacodeConverter.class.php b/wcfsetup/install/files/lib/system/html/metacode/converter/ListMetacodeConverter.class.php index e0b311463a..832b2140d7 100644 --- a/wcfsetup/install/files/lib/system/html/metacode/converter/ListMetacodeConverter.class.php +++ b/wcfsetup/install/files/lib/system/html/metacode/converter/ListMetacodeConverter.class.php @@ -96,9 +96,7 @@ class ListMetacodeConverter extends AbstractMetacodeConverter { // remove marker elements $markers = $element->getElementsByTagName('woltlab-list-item'); while ($markers->length) { - /** @var \DOMElement $marker */ - $marker = $markers[0]; - $marker->parentNode->removeChild($marker); + DOMUtil::removeNode($markers->item(0)); } $childNodes = []; -- 2.20.1