aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib')
-rw-r--r--engine/lib/input.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/engine/lib/input.php b/engine/lib/input.php
index 2b72c5264..23fa4b8b8 100644
--- a/engine/lib/input.php
+++ b/engine/lib/input.php
@@ -21,6 +21,11 @@
function get_input($variable, $default = "", $filter_result = true)
{
+ global $CONFIG;
+
+ if (isset($CONFIG->input[$variable]))
+ return $CONFIG->input[$variable];
+
if (isset($_REQUEST[$variable])) {
if (is_array($_REQUEST[$variable])) {
@@ -40,11 +45,6 @@
return $var;
}
-
- global $CONFIG;
-
- if (isset($CONFIG->input[$variable]))
- return $CONFIG->input[$variable];
return $default;