mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-01 14:30:32 +02:00
Fix r9728 - It does actually not work that way. ;-)
Authorised by: naderman git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9729 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user