[OQRS] Fixed error 500 with OQRS notification email

这个提交包含在:
Andreas 2023-11-21 10:07:59 +01:00
父节点 19f6418718
当前提交 694f9fbd80

查看文件

@ -68,10 +68,13 @@ class Oqrs extends CI_Controller {
}
public function save_not_in_log() {
$station_ids = array();
$postdata = $this->input->post();
$this->load->model('oqrs_model');
$this->oqrs_model->save_not_in_log($postdata);
$this->alert_oqrs_request($postdata);
array_push($station_ids, xss_clean($this->input->post('station_id')));
$this->alert_oqrs_request($postdata, $station_ids);
}
/*
@ -190,9 +193,9 @@ class Oqrs extends CI_Controller {
$this->email->message($message);
if (! $this->email->send()) {
$this->session->set_flashdata('warning', 'Email settings are incorrect.');
log_message('error', 'OQRS Alert! Email settings are incorrect.');
} else {
$this->session->set_flashdata('notice', 'Password Reset Processed.');
log_message('info', 'An OQRS request is made.');
}
}
}