diff options
author | Marc Alexander <admin@m-a-styles.de> | 2015-02-11 12:03:54 +0100 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2015-02-11 12:03:54 +0100 |
commit | 3df25babce5df2d26bc98114cd404d51c659c19f (patch) | |
tree | 16538bed8be122d00e0a015120453d3b357a0318 /phpBB/includes/functions_content.php | |
parent | c6a371531bab7ba7f003c57d25b6b515718eb54f (diff) | |
download | forums-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_content.php')
-rw-r--r-- | phpBB/includes/functions_content.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/includes/functions_content.php b/phpBB/includes/functions_content.php index 87cf34bd9d..6f861b8607 100644 --- a/phpBB/includes/functions_content.php +++ b/phpBB/includes/functions_content.php @@ -78,7 +78,7 @@ function gen_sort_selects(&$limit_days, &$sort_by_text, &$sort_days, &$sort_key, foreach ($sorts as $name => $sort_ary) { $key = $sort_ary['key']; - $selected = $$sort_ary['key']; + $selected = ${$sort_ary['key']}; // Check if the key is selectable. If not, we reset to the default or first key found. // This ensures the values are always valid. We also set $sort_dir/sort_key/etc. to the @@ -87,12 +87,12 @@ function gen_sort_selects(&$limit_days, &$sort_by_text, &$sort_days, &$sort_key, { if ($sort_ary['default'] !== false) { - $selected = $$key = $sort_ary['default']; + $selected = ${$key} = $sort_ary['default']; } else { @reset($sort_ary['options']); - $selected = $$key = key($sort_ary['options']); + $selected = ${$key} = key($sort_ary['options']); } } |