diff options
author | thomascube <thomas@roundcube.net> | 2006-09-04 12:26:30 +0000 |
---|---|---|
committer | thomascube <thomas@roundcube.net> | 2006-09-04 12:26:30 +0000 |
commit | 2f2f15b7aabe19e45dad9bddb7eb7f4394aa1e21 (patch) | |
tree | d97276fc3bd8fbd7eeabafce157d0a32ec00f89f /program/include/main.inc | |
parent | bf0452585baf0f8a1d72095095bc06b132217dbb (diff) |
Little improvements for message parsing and encoding
Diffstat (limited to 'program/include/main.inc')
-rw-r--r-- | program/include/main.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/program/include/main.inc b/program/include/main.inc index 921494829..ae7d50b9f 100644 --- a/program/include/main.inc +++ b/program/include/main.inc @@ -842,7 +842,7 @@ function rcube_charset_convert($str, $from, $to=NULL) $from = strtoupper($from); $to = $to==NULL ? strtoupper($GLOBALS['CHARSET']) : strtoupper($to); - if ($from==$to || $str=='') + if ($from==$to || $str=='' || empty($from)) return $str; // convert charset using mbstring module |