From: Marcel Werk Date: Sun, 25 Mar 2018 17:09:04 +0000 (+0200) Subject: Fixed broken keyword highlighter X-Git-Tag: 3.1.2~53 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f6e3eeb58bddc55c2ee803858ff8cbb18f61d095;p=GitHub%2FWoltLab%2FWCF.git Fixed broken keyword highlighter --- diff --git a/wcfsetup/install/files/lib/system/html/output/node/HtmlOutputNodeProcessor.class.php b/wcfsetup/install/files/lib/system/html/output/node/HtmlOutputNodeProcessor.class.php index 16c781e71f..0cae301e28 100644 --- a/wcfsetup/install/files/lib/system/html/output/node/HtmlOutputNodeProcessor.class.php +++ b/wcfsetup/install/files/lib/system/html/output/node/HtmlOutputNodeProcessor.class.php @@ -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