X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Frequest-functions.php;h=a3ff1de26a65fb576a319bacad583deedebbcabe;hb=e09ef42fa5cc81f733f9c8d1dc741a26f74553ef;hp=f4486a5c6fbfaa4eca461cf2794c16238306ca67;hpb=a975001c8e332a6af3513ea57e9acebeaadf1640;p=mailer.git diff --git a/inc/request-functions.php b/inc/request-functions.php index f4486a5c6f..a3ff1de26a 100644 --- a/inc/request-functions.php +++ b/inc/request-functions.php @@ -114,7 +114,7 @@ function setRequestGetElement ($element, $value) { $GLOBALS['raw_request']['get'][$element] = $value; // Update cache - $GLOBALS['cache_request']['request_get'][$element][null] = $value; + $GLOBALS['cache_request']['request_get'][$element] = $value; } // Wrapper for elements in $_POST @@ -150,9 +150,9 @@ 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])) && (!empty($GLOBALS['raw_request']['post'][$element][$subElement]))); + 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; }