MDL-60281 general: function each() is deprecated in PHP7.2
This commit is contained in:
+2
-2
@@ -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, "/");
|
||||
|
||||
Reference in New Issue
Block a user