2
0
forked from Wavyzz/dolibarr

Fix: Warning with PHP4

This commit is contained in:
Laurent Destailleur
2008-11-06 01:39:47 +00:00
parent 3119f8125b
commit 2702eee3da

View File

@@ -2754,9 +2754,8 @@ function dol_htmlcleanlastbr($stringtodecode)
*/
function dol_entity_decode($stringhtml,$pagecodeto='UTF-8')
{
//print 'x'.$stringhtml;
//$ret=html_entity_decode($stringhtml,ENT_COMPAT,$pagecodeto);
$ret=html_entity_decode($stringhtml,ENT_COMPAT);
// We use @ to avoid warning on PHP4 that does not support entity decoding to UTF8;
$ret=@html_entity_decode($stringhtml,ENT_COMPAT,$pagecodeto);
return $ret;
}