Fix cron output and whitespace

This commit is contained in:
phl0
2025-03-24 08:47:49 +01:00
parent 3c9f293fcc
commit 116041ba11

View File

@@ -489,20 +489,20 @@ class Update extends CI_Controller {
$this->load->view('interface_assets/footer');
}
public function update_hamsofnote() {
$this->load->model('cron_model');
$this->cron_model->set_last_run($this->router->class.'_'.$this->router->method);
$this->load->model('Update_model');
$bodyData['hamsofnote'] = $this->Update_model->update_hams_of_note();
if ($this->session->userdata('user_type') == '99') {
$data['page_title'] = __("Update of Hams of Note");
$this->load->view('interface_assets/header', $data);
$this->load->view('update/hamsofnote', $bodyData);
$this->load->view('interface_assets/footer');
} else {
echo $bodyData['hamsofnote'];
}
}
public function update_hamsofnote() {
$this->load->model('cron_model');
$this->cron_model->set_last_run($this->router->class.'_'.$this->router->method);
$this->load->model('Update_model');
$bodyData['hamsofnote'] = $this->Update_model->update_hams_of_note();
if ($this->session->userdata('user_type') == '99') {
$data['page_title'] = __("Update of Hams of Note");
$this->load->view('interface_assets/header', $data);
$this->load->view('update/hamsofnote', $bodyData);
$this->load->view('interface_assets/footer');
} else {
echo "Hams of note updated. Inserted ".count($bodyData['hamsofnote'])." records.";
}
}
function version_check() {
// set the last run in cron table for the correct cron id