summaryrefslogtreecommitdiff
path: root/includes/sys_page.php
diff options
context:
space:
mode:
authormsquare <msquare@notrademark.de>2016-11-11 17:00:51 +0100
committermsquare <msquare@notrademark.de>2016-11-11 17:00:51 +0100
commit03c9d1ef5dfcb6022e88e150630a6213b1c1d8c5 (patch)
tree4cb57f8a7901b27c73ee3118be602b8095ca49c3 /includes/sys_page.php
parentbeb0db6852a246350d06dcfe508e3d2b9925731f (diff)
reduce complexity of user settings main
Diffstat (limited to 'includes/sys_page.php')
-rw-r--r--includes/sys_page.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/includes/sys_page.php b/includes/sys_page.php
index 3c548bab..713dd33b 100644
--- a/includes/sys_page.php
+++ b/includes/sys_page.php
@@ -141,10 +141,13 @@ function check_date($input, $error_message = null, $null_allowed = false) {
}
/**
- * Gibt den gefilterten REQUEST Wert ohne Zeilenumbrüche zurück
+ * Returns REQUEST value filtered or default value (null) if not set.
*/
-function strip_request_item($name) {
- return strip_item($_REQUEST[$name]);
+function strip_request_item($name, $default_value = null) {
+ if (isset($_REQUEST[$name])) {
+ return strip_item($_REQUEST[$name]);
+ }
+ return $default_value;
}
/**