[-] FO : Prevents warning in safePostVars when $_POST has been unset

This commit is contained in:
Fabio Chelly
2013-11-07 16:38:53 +01:00
parent 7cc351e83d
commit b9c4b5d2a7
+4 -3
View File
@@ -689,9 +689,10 @@ class ToolsCore
public static function safePostVars()
{
if (!is_array($_POST))
return array();
$_POST = array_map(array('Tools', 'htmlentitiesUTF8'), $_POST);
if (!isset($_POST) || !is_array($_POST))
$_POST = array();
else
$_POST = array_map(array('Tools', 'htmlentitiesUTF8'), $_POST);
}
/**