diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php index 1bc7ef27d9..a5a6c956e6 100644 --- a/phpBB/viewtopic.php +++ b/phpBB/viewtopic.php @@ -500,7 +500,7 @@ if( isset($HTTP_GET_VARS['highlight']) ) for($i = 0; $i < count($words); $i++) { - if( trim($words[$i] != "" ) + if( trim($words[$i]) != "" ) { $highlight_match[] = "#\b(" . str_replace("\*", ".*?", preg_quote($words[$i], "#")) . ")\b#i"; $highlight_replace[] = "\\1";