}
// Wrapper for elements in $_POST
-function REQUEST_POST ($element, $subElement=-1) {
+function REQUEST_POST ($element, $subElement=null) {
// By default no element is there
$value = null;
$value = $GLOBALS['raw_request']['post'][$element];
// Is $subElement set?
- if (($subElement != -1) && (REQUEST_ISSET_POST($element, $subElement))) {
+ if ((!is_null($subElement)) && (REQUEST_ISSET_POST($element, $subElement))) {
// Then use this
$value = SQL_ESCAPE($value[$subElement]);
} elseif (!is_array($value)) {