diff options
author | Thomas Bruederli <thomas@roundcube.net> | 2012-11-19 12:06:38 +0100 |
---|---|---|
committer | Thomas Bruederli <thomas@roundcube.net> | 2012-11-19 12:06:38 +0100 |
commit | 19de536b86e29ed7961b2d50223106c31a436106 (patch) | |
tree | f53243c100f46080092677f36da93ed4b81929d5 /program/include/rcube_mime.php | |
parent | 84294d952e840deecd155f9eae9a8d24ee920af3 (diff) |
Check mbstring extension before calling mb_internal_encoding()
Diffstat (limited to 'program/include/rcube_mime.php')
-rw-r--r-- | program/include/rcube_mime.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/program/include/rcube_mime.php b/program/include/rcube_mime.php index 48175b46a..7ce7c90fe 100644 --- a/program/include/rcube_mime.php +++ b/program/include/rcube_mime.php @@ -572,7 +572,7 @@ class rcube_mime */ public static function wordwrap($string, $width=75, $break="\n", $cut=false, $charset=null) { - if ($charset) + if ($charset && function_exists('mb_internal_encoding')) mb_internal_encoding($charset); $para = preg_split('/\r?\n/', $string); @@ -629,7 +629,7 @@ class rcube_mime } } - if ($charset) + if ($charset && function_exists('mb_internal_encoding')) mb_internal_encoding(RCMAIL_CHARSET); return $string; |