aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2007-09-18 14:49:19 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2007-09-18 14:49:19 +0000
commit951f793daeb358eace97cdd0b1c321766da55d48 (patch)
tree37ed80ac95e82e70ea9560ae3256d53fb423801a /phpBB/includes/functions.php
parent36e99af959799eab6610fc6f3ca0e2c76ba4020f (diff)
downloadforums-951f793daeb358eace97cdd0b1c321766da55d48.tar
forums-951f793daeb358eace97cdd0b1c321766da55d48.tar.gz
forums-951f793daeb358eace97cdd0b1c321766da55d48.tar.bz2
forums-951f793daeb358eace97cdd0b1c321766da55d48.tar.xz
forums-951f793daeb358eace97cdd0b1c321766da55d48.zip
some fixes. :P
- language authors may review their email template files... git-svn-id: file:///svn/phpbb/trunk@8092 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r--phpBB/includes/functions.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index 2ce788e80a..3742d89475 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -3512,7 +3512,7 @@ function truncate_string($string, $max_length = 60, $allow_reply = true, $append
if (sizeof($chars) > $max_length)
{
// Cut off the last elements from the array
- $string = implode('', array_slice($chars, 0, $max_length));
+ $string = implode('', array_slice($chars, 0, $max_length - utf8_strlen($append)));
$stripped = true;
}