diff --git a/phpBB/includes/functions_content.php b/phpBB/includes/functions_content.php index 7731d63a48..5b1d6244b3 100644 --- a/phpBB/includes/functions_content.php +++ b/phpBB/includes/functions_content.php @@ -399,7 +399,7 @@ function get_context($text, $words, $length = 400) // Get the last fragment $fragments[] = $fragment; - $output = htmlentities(implode($fragments, '')); + $output = htmlentities(implode('', $fragments)); } return $output;