From 2d0805f508a5298cc9eb2c52137f6cf9205fa1d9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Wed, 28 Oct 2009 23:20:28 +0000 Subject: [PATCH] Should be isset() to allow empty POST data --- inc/request-functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]))); } } -- 2.39.5