From 714550663cf95249c913f5350cbc9d9f2bfaa938 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Tue, 4 Aug 2009 01:13:13 -0600 Subject: [PATCH] Fix usage of truncate length --- framework/Util/lib/Horde/String.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/Util/lib/Horde/String.php b/framework/Util/lib/Horde/String.php index bc60e6959..cbb104067 100644 --- a/framework/Util/lib/Horde/String.php +++ b/framework/Util/lib/Horde/String.php @@ -599,7 +599,7 @@ class Horde_String static public function truncate($text, $length = 100) { return (self::length($text) > $length) - ? self::substr($text, 0, 100) . ' ...' + ? self::substr($text, 0, $length) . ' ...' : $text; } -- 2.11.0