//fix warnings

This commit is contained in:
Gregory Roussac
2013-01-25 01:00:38 +01:00
parent f5678d31c2
commit 3630c4e9c8
+2 -2
View File
@@ -644,14 +644,14 @@ class ToolsCore
{
if (is_array($string))
return array_map(array('Tools', 'htmlentitiesUTF8'), $string);
return htmlentities($string, $type, 'utf-8');
return htmlentities((string)$string, $type, 'utf-8');
}
public static function htmlentitiesDecodeUTF8($string)
{
if (is_array($string))
return array_map(array('Tools', 'htmlentitiesDecodeUTF8'), $string);
return html_entity_decode($string, ENT_QUOTES, 'utf-8');
return html_entity_decode((string)$string, ENT_QUOTES, 'utf-8');
}
public static function safePostVars()