Ignore:
Timestamp:
Jan 13, 2010 7:59:21 AM (3 years ago)
Author:
alec
Message:
  • prevent from PHP error when iconv doesn't support IGNORE (#1486375)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/include/main.inc

    r3201 r3205  
    196196  // convert charset using iconv module   
    197197  if (function_exists('iconv') && $from != 'UTF-7' && $to != 'UTF-7') { 
    198     $_iconv = iconv($from, $to . '//IGNORE', $str); 
     198    $_iconv = @iconv($from, $to . '//IGNORE', $str); 
    199199    if ($_iconv !== false) { 
    200200        return $_iconv; 
Note: See TracChangeset for help on using the changeset viewer.