From d43eb5dde3d31d2db3823595ea6d57880f3874cd Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Thu, 19 Mar 2009 18:21:31 +0000 Subject: [PATCH] Fixes for typo and maybe for REQUEST_ISSET_GET/POST() functions, fixes #115/114. Thanks to AndreasJung --- inc/modules/admin/what-config_register.php | 2 +- inc/request-functions.php | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) 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]))); } } -- 2.39.2