[-] FO : Prevents warning in safePostVars when $_POST has been unset
This commit is contained in:
1 parent
7cc351e83d
commit
b9c4b5d2a7
1 file changed
+4
-3
+4
-3
@@ -689,9 +689,10 @@ class ToolsCore
|
|||||||
|
|
||||||
public static function safePostVars()
|
public static function safePostVars()
|
||||||
{
|
{
|
||||||
if (!is_array($_POST))
|
if (!isset($_POST) || !is_array($_POST))
|
||||||
return array();
|
$_POST = array();
|
||||||
$_POST = array_map(array('Tools', 'htmlentitiesUTF8'), $_POST);
|
else
|
||||||
|
$_POST = array_map(array('Tools', 'htmlentitiesUTF8'), $_POST);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in new issue
Block a user