mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
[ticket/16288] PHP 8 compatibility
PHPBB3-16288
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user