aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/phpbb/template/context.php')
-rw-r--r--phpBB/phpbb/template/context.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/phpBB/phpbb/template/context.php b/phpBB/phpbb/template/context.php
index f059c327c1..d98d8b6e28 100644
--- a/phpBB/phpbb/template/context.php
+++ b/phpBB/phpbb/template/context.php
@@ -384,7 +384,9 @@ class context
if (is_array($key))
{
// Search array to get correct position
- list($search_key, $search_value) = @each($key);
+ $search_key = key($key);
+ $search_value = current($key);
+
foreach ($block as $i => $val_ary)
{
if ($val_ary[$search_key] === $search_value)
@@ -481,7 +483,8 @@ class context
if (is_array($key))
{
// Search array to get correct position
- list($search_key, $search_value) = @each($key);
+ $search_key = key($key);
+ $search_value = current($key);
$key = null;
foreach ($block as $i => $val_ary)