From ecbd5b5d53a9d9d8d24c84dcf2ebf7682f77107d Mon Sep 17 00:00:00 2001 From: alecpl <alec@alec.pl> Date: Wed, 13 Jan 2010 07:59:21 -0500 Subject: [PATCH] - prevent from PHP error when iconv doesn't support //IGNORE (#1486375) --- 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 6b738e3..36d3908 100644 --- a/program/include/main.inc +++ b/program/include/main.inc @@ -195,7 +195,7 @@ // 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; } -- Gitblit v1.9.1