[OQRS] Fixed error 500 with OQRS notification email
这个提交包含在:
父节点
19f6418718
当前提交
694f9fbd80
共有 1 个文件被更改,包括 20 次插入 和 17 次删除
|
|
@ -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.');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
正在加载…
在新工单中引用