Remove unnecessary check
authorCyperghost <olaf_schmitz_1@t-online.de>
Thu, 14 Dec 2023 11:11:14 +0000 (12:11 +0100)
committerCyperghost <olaf_schmitz_1@t-online.de>
Thu, 14 Dec 2023 11:11:14 +0000 (12:11 +0100)
wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeImg.class.php

index bc7cba776939b529850719604555d5cf10b5522b..b2bf2b07418335d2fec9060858705d740acf02ff 100644 (file)
@@ -186,7 +186,7 @@ class HtmlInputNodeImg extends AbstractHtmlInputNode
 
         $replaceElement = $element;
         $parent = $this->getParentFigure($element);
-        if ($parent !== null && $parent->tagName === "figure") {
+        if ($parent !== null) {
             if (\preg_match('~\b(?<float>image-style-side-left|image-style-side)\b~', $parent->getAttribute('class'), $matches)) {
                 $float = ($matches['float'] === 'image-style-side-left') ? 'left' : 'right';
             } else {