Remove if both(next and previous) are null. This should be handled by the default...
authorCyperghost <olaf_schmitz_1@t-online.de>
Wed, 17 Jan 2024 14:55:16 +0000 (15:55 +0100)
committerOlaf Braun <info@braun-development.de>
Thu, 7 Mar 2024 15:36:44 +0000 (16:36 +0100)
wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeProcessor.class.php

index 2f9349d43fdc6d459b7c75c30cb061afa7e282f8..41efb19e7a17109b1d72aa89fbcb270e8b569542 100644 (file)
@@ -825,11 +825,8 @@ class HtmlInputNodeProcessor extends AbstractHtmlNodeProcessor
                     // <p>…<br><a href="https://example.com">https://example.com</a><br>…</p>
                     // <p>…<br><u><b><a href="https://example.com">https://example.com</a></b></u><br>…</p>
                     if (
-                        $previousSibling === null && $nextSibling === null
-                        || (
-                            $previousSibling !== null && $nextSibling !== null
-                            && $previousSibling->nodeName === 'br' && $nextSibling->nodeName === 'br'
-                        )
+                        $previousSibling !== null && $nextSibling !== null
+                        && $previousSibling->nodeName === 'br' && $nextSibling->nodeName === 'br'
                     ) {
                         $this->plainLinks[] = $plainLink->setIsStandalone($parent, false);
                         continue;