PHP 5.5 compatibility
authorAlexander Ebert <ebert@woltlab.com>
Tue, 4 Oct 2016 08:11:40 +0000 (10:11 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 4 Oct 2016 08:11:40 +0000 (10:11 +0200)
wcfsetup/install/files/lib/system/html/metacode/converter/ListMetacodeConverter.class.php

index e0b311463a12a72dda352ba43c230755c5430b29..832b2140d72178c68fc807e12d73e11bfa8011c8 100644 (file)
@@ -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 = [];