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

This commit is contained in:
Fabio Chelly committed 2013-11-07 16:38:53 +01:00
1 parent 7cc351e83d
commit b9c4b5d2a7
1 file changed
+4 -3
+4 -3
View File
@@ -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);
} }
/** /**