From a40d5e46f8a69b52dceea027b24f28c93aa75ba0 Mon Sep 17 00:00:00 2001 From: Szymon Porwolik Date: Mon, 22 Sep 2025 20:57:04 +0200 Subject: [PATCH] Fix last update for HAMqsl cron job --- application/controllers/Update.php | 4 ++++ application/views/debug/index.php | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/application/controllers/Update.php b/application/controllers/Update.php index e73488aff..eb6302b01 100644 --- a/application/controllers/Update.php +++ b/application/controllers/Update.php @@ -451,6 +451,10 @@ class Update extends CI_Controller { } else { $this->session->set_flashdata('error', __("HAMqsl Update failed. Result: ") . "'" . $result . "'"); } + + $this->load->model('cron_model'); + $this->cron_model->set_last_run($this->router->class.'_'.$this->router->method); + redirect('debug'); } else { echo $result; diff --git a/application/views/debug/index.php b/application/views/debug/index.php index d71c45bfc..a477ff5bc 100644 --- a/application/views/debug/index.php +++ b/application/views/debug/index.php @@ -566,7 +566,7 @@ - last_run ?? __("never"); ?> + last_run ?? __("never"); ?>