From 63a69e42584e264823c7d2dfe764b59d2660ace4 Mon Sep 17 00:00:00 2001 From: matthew Date: Sat, 1 Jun 2019 12:02:58 -0500 Subject: [PATCH] Change to correct issue with my change to prevent cron uploader from throwing warnings. Now using array_pop so that position in the array doesn't matter. --- ext/cron_uploader/main.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/cron_uploader/main.php b/ext/cron_uploader/main.php index 8b1b55d7..cd8096b2 100644 --- a/ext/cron_uploader/main.php +++ b/ext/cron_uploader/main.php @@ -265,8 +265,8 @@ class CronUploader extends Extension shuffle($this->image_queue); // Upload the file(s) - for ($i = 0; $i < $upload_count && $i < sizeof($this->image_queue); $i++) { - $img = $this->image_queue[$i]; + for ($i = 0; $i < $upload_count && sizeof($this->image_queue)>0; $i++) { + $img = array_pop($this->image_queue); try { $this->add_image($img[0], $img[1], $img[2]);