//fix warnings
This commit is contained in:
+2
-2
@@ -644,14 +644,14 @@ class ToolsCore
|
|||||||
{
|
{
|
||||||
if (is_array($string))
|
if (is_array($string))
|
||||||
return array_map(array('Tools', 'htmlentitiesUTF8'), $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)
|
public static function htmlentitiesDecodeUTF8($string)
|
||||||
{
|
{
|
||||||
if (is_array($string))
|
if (is_array($string))
|
||||||
return array_map(array('Tools', 'htmlentitiesDecodeUTF8'), $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()
|
public static function safePostVars()
|
||||||
|
|||||||
Reference in New Issue
Block a user