diff options
Diffstat (limited to 'engine/lib/input.php')
-rw-r--r-- | engine/lib/input.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/engine/lib/input.php b/engine/lib/input.php index 9244c16f3..f42aa7a25 100644 --- a/engine/lib/input.php +++ b/engine/lib/input.php @@ -20,9 +20,12 @@ function get_input($variable, $default = "")
{
- if (isset($_REQUEST[$variable])) {
- $value = $_REQUEST[$variable];
- return trim($_REQUEST[$variable]);
+ if (isset($_REQUEST[$variable])) { + + if (is_array($_REQUEST[$variable])) + return $_REQUEST[$variable]; + else + return trim($_REQUEST[$variable]);
}
global $CONFIG;
|