diff --git a/lib/helper/TextHelper.php b/lib/helper/TextHelper.php index b518fcf0c..0f65f15c2 100644 --- a/lib/helper/TextHelper.php +++ b/lib/helper/TextHelper.php @@ -50,7 +50,7 @@ function truncate_text($text, $length = 30, $truncate_string = '...', $truncate_ if ($strlen($text) > $length) { if ($truncate_pattern) { - $length_min = null !== $length_max && (0 == $length_max || $length_max > $length) ? $length : null; + $length_min = null !== $length_max && (0 == $length_max || $length_max > $length) ? $length : 0; preg_match($truncate_pattern, $text, $matches, PREG_OFFSET_CAPTURE, $length_min);