mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00: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:
parent
a6f088992b
commit
48e3b6deaa
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue