aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--phpBB/includes/functions.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index 29f4186a5d..c6f6084918 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -72,12 +72,12 @@ function request_var($var_name, $default, $multibyte = false, $cookie = false)
}
$super_global = ($cookie) ? '_COOKIE' : '_REQUEST';
- if (!isset($$super_global[$var_name]) || is_array($$super_global[$var_name]) != is_array($default))
+ if (!isset($GLOBALS[$super_global][$var_name]) || is_array($GLOBALS[$super_global][$var_name]) != is_array($default))
{
return (is_array($default)) ? array() : $default;
}
- $var = $$super_global[$var_name];
+ $var = $GLOBALS[$super_global][$var_name];
if (!is_array($default))
{
$type = gettype($default);