From 6dccf399a51b3d4ac33b10169d365412ba2c4dcd Mon Sep 17 00:00:00 2001 From: snipe Date: Thu, 12 Nov 2020 15:51:31 -0800 Subject: [PATCH] Fixed offset issue for #8732 --- app/Console/Commands/MoveUploadsToNewDisk.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Console/Commands/MoveUploadsToNewDisk.php b/app/Console/Commands/MoveUploadsToNewDisk.php index 95689a8035..a6c93e1735 100644 --- a/app/Console/Commands/MoveUploadsToNewDisk.php +++ b/app/Console/Commands/MoveUploadsToNewDisk.php @@ -88,7 +88,7 @@ class MoveUploadsToNewDisk extends Command $this->info("\nThere are ".count($logos).' files that might be logos.'); $type_count = 0; - for ($l = 0; $l < count($logos); $l++) { + for ($l = 0; $l <= count($logos); $l++) { $type_count++; $filename = basename($logos[$l]); $new_url = Storage::disk('public')->url($logos[$l], file_get_contents($public_upload[$l]));