* -------------------------------------------------------------------- *
* Kurzbeschreibung : Spezialle Funktionen fuer die Anfragebehandlung *
* -------------------------------------------------------------------- *
- * $Revision:: 856 $ *
+ * $Revision:: $ *
* $Date:: $ *
* $Tag:: 0.2.1-FINAL $ *
* $Author:: $ *
// 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
}
// 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])));
}
}
// 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])));
}
}