Fixed broken keyword highlighter
authorMarcel Werk <burntime@woltlab.com>
Sun, 25 Mar 2018 17:09:04 +0000 (19:09 +0200)
committerMarcel Werk <burntime@woltlab.com>
Sun, 25 Mar 2018 17:09:04 +0000 (19:09 +0200)
wcfsetup/install/files/lib/system/html/output/node/HtmlOutputNodeProcessor.class.php

index 16c781e71fa987f8872b2e192e287c01c5a82e7d..0cae301e28848800c09507d6122465afc292ab6f 100644 (file)
@@ -219,7 +219,7 @@ class HtmlOutputNodeProcessor extends AbstractHtmlNodeProcessor {
                foreach ($nodes as $node) {
                        $split = preg_split('+'.$keywordPattern.'+i', $node->textContent, -1, PREG_SPLIT_DELIM_CAPTURE);
                        $count = count($split);
-                       if ($count == 1) return;
+                       if ($count == 1) continue;
                        
                        for ($i = 0; $i < $count; $i++) {
                                // text