From 98bc7c7df1f3c10087cc3a0d7760c5afd79a5aea Mon Sep 17 00:00:00 2001 From: root Date: Sat, 1 Jun 2019 10:04:16 -0500 Subject: [PATCH] Corrected issue preventing cron upload from generating key --- ext/cron_uploader/main.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ext/cron_uploader/main.php b/ext/cron_uploader/main.php index be0b1c0c..5c9a452e 100644 --- a/ext/cron_uploader/main.php +++ b/ext/cron_uploader/main.php @@ -142,7 +142,9 @@ class CronUploader extends Extension { global $config; // Set default values - if ($config->get_string("cron_uploader_key", "")) { + $this->upload_key = $config->get_string("cron_uploader_key", ""); + if (strlen($this->upload_key)<=0) { + echo "test2"; $this->upload_key = $this->generate_key(); $config->set_default_int('cron_uploader_count', 1);