From: Roland Häder Date: Wed, 28 Oct 2009 23:20:28 +0000 (+0000) Subject: Should be isset() to allow empty POST data X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=commitdiff_plain;h=2d0805f508a5298cc9eb2c52137f6cf9205fa1d9 Should be isset() to allow empty POST data --- diff --git a/inc/request-functions.php b/inc/request-functions.php index 69e361e657..1320843bd2 100644 --- a/inc/request-functions.php +++ b/inc/request-functions.php @@ -152,7 +152,7 @@ function isPostRequestElementSet ($element, $subElement=null) { if (is_null($subElement)) { return ((isset($GLOBALS['raw_request']['post'][$element])) && (!empty($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]))); } }