From ecbd5b5d53a9d9d8d24c84dcf2ebf7682f77107d Mon Sep 17 00:00:00 2001 From: alecpl Date: Wed, 13 Jan 2010 12:59:21 +0000 Subject: - prevent from PHP error when iconv doesn't support //IGNORE (#1486375) --- program/include/main.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'program/include/main.inc') 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; } -- cgit v1.2.3