diff --git a/phpBB/includes/functions_content.php b/phpBB/includes/functions_content.php index e99d0a4800..a207fc28e9 100644 --- a/phpBB/includes/functions_content.php +++ b/phpBB/includes/functions_content.php @@ -398,7 +398,7 @@ function get_context(string $text, array $words, int $length = 400) // Get the last fragment $fragments[] = $fragment; - $output = htmlentities(implode($fragments, '')); + $output = htmlentities(implode('', $fragments)); } return $output;