Should be isset() to allow empty POST data
authorRoland Häder <roland@mxchange.org>
Wed, 28 Oct 2009 23:20:28 +0000 (23:20 +0000)
committerRoland Häder <roland@mxchange.org>
Wed, 28 Oct 2009 23:20:28 +0000 (23:20 +0000)
inc/request-functions.php

index 69e361e..1320843 100644 (file)
@@ -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])));
        }
 }