summaryrefslogtreecommitdiff
path: root/program/include
diff options
context:
space:
mode:
Diffstat (limited to 'program/include')
-rw-r--r--program/include/rcube_mime.php4
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;