Exclude archived LOTW certs from expiry checks

Added 'archived' => 0 to the queries in lotw_cert_expired and lotw_cert_expiring methods to ensure only active certificates are considered when checking for expired or expiring LOTW certificates.
这个提交包含在:
Peter Goodhall 2025-08-22 17:20:26 +01:00
父节点 67a652bce6
当前提交 c6413fc755

查看文件

@ -119,7 +119,7 @@ class LotwCert extends CI_Model {
}
function lotw_cert_expired($user_id, $date) {
$array = array('user_id' => $user_id, 'date_expires <' => $date);
$array = array('user_id' => $user_id, 'date_expires <' => $date, 'archived' => 0);
$this->db->where($array);
$query = $this->db->get('lotw_certs');
@ -131,7 +131,7 @@ class LotwCert extends CI_Model {
}
function lotw_cert_expiring($user_id, $date) {
$array = array('user_id' => $user_id, 'DATE_SUB(date_expires, INTERVAL 30 DAY) <' => $date, 'date_expires >' => $date);
$array = array('user_id' => $user_id, 'DATE_SUB(date_expires, INTERVAL 30 DAY) <' => $date, 'date_expires >' => $date, 'archived' => 0);
$this->db->where($array);
$query = $this->db->get('lotw_certs');