From: Roland Häder Date: Thu, 19 Mar 2009 18:21:31 +0000 (+0000) Subject: Fixes for typo and maybe for REQUEST_ISSET_GET/POST() functions, fixes #115/114.... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d43eb5dde3d31d2db3823595ea6d57880f3874cd;p=mailer.git Fixes for typo and maybe for REQUEST_ISSET_GET/POST() functions, fixes #115/114. Thanks to AndreasJung --- diff --git a/inc/modules/admin/what-config_register.php b/inc/modules/admin/what-config_register.php index f78267f97e..859a94eb73 100644 --- a/inc/modules/admin/what-config_register.php +++ b/inc/modules/admin/what-config_register.php @@ -63,7 +63,7 @@ while ($content = SQL_FETCHARRAY($result)) { // Add more data $content['sw'] = $SW; - $content['seleciton'] = ADD_SELECTION('yn', $content['field_required'], "sel[".$content['id']."]"); + $content['selection'] = ADD_SELECTION('yn', $content['field_required'], "sel[".$content['id']."]"); // @TODO Move this HTML code into a template $OUT .= " diff --git a/inc/request-functions.php b/inc/request-functions.php index 26006c50a3..b8f862fee9 100644 --- a/inc/request-functions.php +++ b/inc/request-functions.php @@ -66,9 +66,9 @@ function REQUEST_GET ($element) { // Checks if an element in $_GET exists function REQUEST_ISSET_GET ($element, $subElement="") { if (empty($subElement)) { - return (isset($_GET[$element])); + return ((isset($_GET[$element])) && (!empty($_GET[$element]))); } else { - return (isset($_GET[$element][$subElement])); + return ((isset($_GET[$element][$subElement])) && (!empty($_GET[$element][$subElement]))); } } @@ -128,9 +128,9 @@ function REQUEST_POST ($element, $subElement=null) { // Checks if an element in $_POST exists function REQUEST_ISSET_POST ($element, $subElement=null) { if (is_null($subElement)) { - return (isset($_POST[$element])); + return ((isset($_POST[$element])) && (!empty($_POST[$element]))); } else { - return (isset($_POST[$element][$subElement])); + return ((isset($_POST[$element][$subElement])) && (!empty($_POST[$element][$subElement]))); } }