1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 05:50:42 +02:00

[ticket/13597] Modify variable-variable syntax to be compatible with PHP7

PHPBB3-13597
This commit is contained in:
Marc Alexander
2015-02-11 12:03:54 +01:00
parent c6a371531b
commit 3df25babce
7 changed files with 14 additions and 14 deletions

View File

@@ -198,9 +198,9 @@ $prefixes = array('f_', 'a_', 'm_', 'u_');
foreach ($prefixes as $prefix)
{
$var = $prefix . 'permissions';
if (sizeof($$var))
if (sizeof(${$var}))
{
foreach ($$var as $auth_option => $l_ary)
foreach (${$var} as $auth_option => $l_ary)
{
$sql_ary = array(
'auth_option' => $auth_option,