summaryrefslogtreecommitdiff
path: root/program/include/main.inc
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2010-01-13 12:59:21 +0000
committeralecpl <alec@alec.pl>2010-01-13 12:59:21 +0000
commitecbd5b5d53a9d9d8d24c84dcf2ebf7682f77107d (patch)
tree957da7f8a25b140d5edb433879c12ffdd73a8622 /program/include/main.inc
parent18cdf6b15547f85b7ff369a5777451f40b149ea0 (diff)
- prevent from PHP error when iconv doesn't support //IGNORE (#1486375)
Diffstat (limited to 'program/include/main.inc')
-rw-r--r--program/include/main.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/include/main.inc b/program/include/main.inc
index 6b738e37a..36d39085d 100644
--- a/program/include/main.inc
+++ b/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;
}