aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_user.php
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2015-02-11 12:03:54 +0100
committerMarc Alexander <admin@m-a-styles.de>2015-02-11 12:03:54 +0100
commit3df25babce5df2d26bc98114cd404d51c659c19f (patch)
tree16538bed8be122d00e0a015120453d3b357a0318 /phpBB/includes/functions_user.php
parentc6a371531bab7ba7f003c57d25b6b515718eb54f (diff)
downloadforums-3df25babce5df2d26bc98114cd404d51c659c19f.tar
forums-3df25babce5df2d26bc98114cd404d51c659c19f.tar.gz
forums-3df25babce5df2d26bc98114cd404d51c659c19f.tar.bz2
forums-3df25babce5df2d26bc98114cd404d51c659c19f.tar.xz
forums-3df25babce5df2d26bc98114cd404d51c659c19f.zip
[ticket/13597] Modify variable-variable syntax to be compatible with PHP7
PHPBB3-13597
Diffstat (limited to 'phpBB/includes/functions_user.php')
-rw-r--r--phpBB/includes/functions_user.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/phpBB/includes/functions_user.php b/phpBB/includes/functions_user.php
index 83f6e44453..acf5649ed5 100644
--- a/phpBB/includes/functions_user.php
+++ b/phpBB/includes/functions_user.php
@@ -44,13 +44,13 @@ function user_get_id_name(&$user_id_ary, &$username_ary, $user_type = false)
$which_ary = ($user_id_ary) ? 'user_id_ary' : 'username_ary';
- if ($$which_ary && !is_array($$which_ary))
+ if (${$which_ary} && !is_array(${$which_ary}))
{
- $$which_ary = array($$which_ary);
+ ${$which_ary} = array(${$which_ary});
}
- $sql_in = ($which_ary == 'user_id_ary') ? array_map('intval', $$which_ary) : array_map('utf8_clean_string', $$which_ary);
- unset($$which_ary);
+ $sql_in = ($which_ary == 'user_id_ary') ? array_map('intval', ${$which_ary}) : array_map('utf8_clean_string', ${$which_ary});
+ unset(${$which_ary});
$user_id_ary = $username_ary = array();