diff --git a/phpBB/includes/functions_content.php b/phpBB/includes/functions_content.php index c365b4d684..23cbff7e8f 100644 --- a/phpBB/includes/functions_content.php +++ b/phpBB/includes/functions_content.php @@ -1129,7 +1129,7 @@ function truncate_string($string, $max_length = 60, $max_store_length = 255, $al array_pop($chars); $string = implode('', $chars); } - while (!empty($char) && utf8_strlen($string) > $max_store_length); + while (!empty($chars) && utf8_strlen($string) > $max_store_length); } if ($strip_reply)