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.

This commit is contained in:
matthew 2019-06-01 12:02:58 -05:00
parent 99b51e65c1
commit 63a69e4258

View file

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