From: Michael M Slusarz Date: Tue, 4 Aug 2009 07:13:13 +0000 (-0600) Subject: Fix usage of truncate length X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=714550663cf95249c913f5350cbc9d9f2bfaa938;p=horde.git Fix usage of truncate length --- 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; }