MDL-60281 general: function each() is deprecated in PHP7.2

This commit is contained in:
Marina Glancy
2017-10-16 09:37:20 +08:00
parent 484b43f456
commit 33683bc80c
11 changed files with 29 additions and 20 deletions
+2 -2
View File
@@ -954,7 +954,7 @@ EOD;
$result = true;
while (list($localpath, $destpath) = each($filelist)) {
foreach ($filelist as $localpath => $destpath) {
$localpath = rtrim($localpath, "/");
$destpath = rtrim($destpath, "/");
@@ -1011,7 +1011,7 @@ EOD;
$result = true;
while (list($remotepath, $localpath) = each($filelist)) {
foreach ($filelist as $remotepath => $localpath) {
$localpath = rtrim($localpath, "/");
$remotepath = rtrim($remotepath, "/");