// Checks if an element in $_POST exists
function isPostRequestElementSet ($element, $subElement=null) {
if (is_null($subElement)) {
- return ((isset($GLOBALS['raw_request']['post'][$element])) && (!empty($GLOBALS['raw_request']['post'][$element])));
+ return ((isset($GLOBALS['raw_request']['post'][$element])) && (isset($GLOBALS['raw_request']['post'][$element])));
} else {
return ((isset($GLOBALS['raw_request']['post'][$element][$subElement])) && (isset($GLOBALS['raw_request']['post'][$element][$subElement])));
}
}
// Setter for whole $_POST array
-function setPostRequestArray (array $postData) {
+function setPostRequestArray ($postData) {
$GLOBALS['raw_request']['post'] = $postData;
}