diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-01-13 12:59:21 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-01-13 12:59:21 +0000 |
| commit | faed0ae02f87c44c96e22e4eeaac53b217d9536a (patch) | |
| tree | 3db3ecd24d1940af0d7237e461562053d649abbb /roundcubemail/program/include/main.inc | |
| parent | b2fdecbd5224e2bc4b67ae5c39516d83544f7111 (diff) | |
- prevent from PHP error when iconv doesn't support //IGNORE (#1486375)
git-svn-id: https://svn.roundcube.net/trunk@3205 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include/main.inc')
| -rw-r--r-- | roundcubemail/program/include/main.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/roundcubemail/program/include/main.inc b/roundcubemail/program/include/main.inc index 6b738e37a..36d39085d 100644 --- a/roundcubemail/program/include/main.inc +++ b/roundcubemail/program/include/main.inc @@ -195,7 +195,7 @@ function rcube_charset_convert($str, $from, $to=NULL) // convert charset using iconv module if (function_exists('iconv') && $from != 'UTF-7' && $to != 'UTF-7') { - $_iconv = iconv($from, $to . '//IGNORE', $str); + $_iconv = @iconv($from, $to . '//IGNORE', $str); if ($_iconv !== false) { return $_iconv; } |
