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

[ticket/16277] Move from each() function

PHPBB3-16277
This commit is contained in:
rxu
2019-12-29 18:56:36 +07:00
parent 94808e2cbc
commit 80de9f6a68
10 changed files with 27 additions and 32 deletions

View File

@@ -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])
{