X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Frequest-functions.php;h=a3ff1de26a65fb576a319bacad583deedebbcabe;hb=247435718942b91af153c729c0347be3af1fecf9;hp=1320843bd26c63c014471ca9f59917c33a14bd5b;hpb=937e2b82e3787ad4aaa5462a480ab256785442cc;p=mailer.git diff --git a/inc/request-functions.php b/inc/request-functions.php index 1320843bd2..a3ff1de26a 100644 --- a/inc/request-functions.php +++ b/inc/request-functions.php @@ -150,7 +150,7 @@ function postRequestElement ($element, $subElement=null) { // 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]))); } @@ -167,7 +167,7 @@ function postRequestArray () { } // Setter for whole $_POST array -function setPostRequestArray (array $postData) { +function setPostRequestArray ($postData) { $GLOBALS['raw_request']['post'] = $postData; }