// small fix

This commit is contained in:
Rémi Gaillard
2013-11-04 10:34:58 +01:00
parent d49c4cf62e
commit 6ef7f258ea
5 changed files with 17 additions and 10 deletions
+2 -4
View File
@@ -672,10 +672,8 @@ class ToolsCore
public static function htmlentitiesUTF8($string, $type = ENT_QUOTES)
{
if (is_array($string))
{
$string = array_map(array('Tools', 'htmlentitiesUTF8'), $string);
return (string)array_shift($string);
}
return array_map(array('Tools', 'htmlentitiesUTF8'), $string);
return htmlentities((string)$string, $type, 'utf-8');
}