X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Frequest-functions.php;h=a3ff1de26a65fb576a319bacad583deedebbcabe;hb=1c6f1e3a075bb30911a3ac6cf6f90c9125261ec5;hp=1320843bd26c63c014471ca9f59917c33a14bd5b;hpb=2d0805f508a5298cc9eb2c52137f6cf9205fa1d9;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; }