forked from Cavemanon/cavepaintings
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:
@@ -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]);
|
||||
|
Reference in New Issue
Block a user