mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-22 03:53:37 +00:00
Fix #4235
This commit is contained in:
@@ -57,7 +57,7 @@ if (!function_exists('limitStringLength')) {
|
||||
$length = \strlen($string);
|
||||
$result = $string;
|
||||
if ($length > $maxChars) {
|
||||
$result = substr_replace($string, ' ... ', $maxChars / 2, $length - $maxChars);
|
||||
$result = substr_replace($string, ' ... ', (int)($maxChars / 2), $length - $maxChars);
|
||||
}
|
||||
|
||||
return $result;
|
||||
|
Reference in New Issue
Block a user