mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Check certs for superseded status
This commit is contained in:
@@ -46,6 +46,15 @@ class Lotw extends CI_Controller {
|
||||
// Load required models for page generation
|
||||
$this->load->model('Lotw_model');
|
||||
|
||||
// Check for superseded certificates
|
||||
$certcheck = $this->Lotw_model->lotw_certs($this->session->userdata('user_id'));
|
||||
foreach ($certcheck->result() as $row) {
|
||||
$status = $this->lotw_cert_status($row->serial);
|
||||
if ($status != 99 && $status != $row->status) {
|
||||
$this->Lotw_model->update_cert_status($row->lotw_cert_id, $status);
|
||||
}
|
||||
}
|
||||
|
||||
// Get Array of the logged in users LoTW certs.
|
||||
$data['lotw_cert_results'] = $this->Lotw_model->lotw_certs($this->session->userdata('user_id'));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user