X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Frequest-functions.php;h=e88d7c9860c2bc02096c11de1e67c167078be79b;hp=482c69b5f1075c7c536f785091b86ba047d5d861;hb=aac3cb15887577d2016bb5b4de91ad4da5b9cc6f;hpb=508228c85fba8448d00865b1639cb8cd7a69e457 diff --git a/inc/request-functions.php b/inc/request-functions.php index 482c69b5f1..e88d7c9860 100644 --- a/inc/request-functions.php +++ b/inc/request-functions.php @@ -10,7 +10,7 @@ * -------------------------------------------------------------------- * * Kurzbeschreibung : Spezialle Funktionen fuer die Anfragebehandlung * * -------------------------------------------------------------------- * - * $Revision:: 856 $ * + * $Revision:: $ * * $Date:: $ * * $Tag:: 0.2.1-FINAL $ * * $Author:: $ * @@ -38,7 +38,7 @@ // Some security stuff... if (!defined('__SECURITY')) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php'; require($INC); } // END - if @@ -64,11 +64,11 @@ function REQUEST_GET ($element) { } // Checks if an element in $_GET exists -function REQUEST_ISSET_GET ($element, $subElement="") { +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]))); } }