aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/diff/engine.php
diff options
context:
space:
mode:
authorrxu <rxu@mail.ru>2019-12-29 18:56:36 +0700
committerrxu <rxu@mail.ru>2019-12-29 18:56:36 +0700
commit80de9f6a68d7b50eb5387cdc2b99624484e75201 (patch)
treedfb76923a3cc418a35e391e8c8c58534c23d5551 /phpBB/includes/diff/engine.php
parent94808e2cbc880aa16212aa24c7dd7e94bf511305 (diff)
downloadforums-80de9f6a68d7b50eb5387cdc2b99624484e75201.tar
forums-80de9f6a68d7b50eb5387cdc2b99624484e75201.tar.gz
forums-80de9f6a68d7b50eb5387cdc2b99624484e75201.tar.bz2
forums-80de9f6a68d7b50eb5387cdc2b99624484e75201.tar.xz
forums-80de9f6a68d7b50eb5387cdc2b99624484e75201.zip
[ticket/16277] Move from each() function
PHPBB3-16277
Diffstat (limited to 'phpBB/includes/diff/engine.php')
-rw-r--r--phpBB/includes/diff/engine.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/diff/engine.php b/phpBB/includes/diff/engine.php
index 757fdadde9..19e0bcf09e 100644
--- a/phpBB/includes/diff/engine.php
+++ b/phpBB/includes/diff/engine.php
@@ -285,7 +285,7 @@ class diff_engine
$matches = $ymatches[$line];
reset($matches);
- while (list(, $y) = each($matches))
+ while ($y = current($matches))
{
if (empty($this->in_seq[$y]))
{
@@ -296,7 +296,7 @@ class diff_engine
}
// no reset() here
- while (list(, $y) = each($matches))
+ while ($y = current($matches))
{
if ($y > $this->seq[$k - 1])
{