From 68436c4a963904a706fd44e5c89a7b9f72910b4c Mon Sep 17 00:00:00 2001 From: Ruben Calvo Date: Tue, 9 Jul 2024 00:24:47 +0200 Subject: [PATCH] [ticket/15403] Fix order of parameters in implode PHPBB-15403 --- phpBB/includes/functions_content.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;