Handle missing/empty QSL msg

This commit is contained in:
phl0
2025-01-16 10:13:55 +01:00
parent c997f36ecc
commit 216590aa6d

View File

@@ -510,7 +510,7 @@ class Eqslmethods_model extends CI_Model {
'COL_EQSL_QSLRDATE' => $eqsl_qslrdate ?? date('Y-m-d'), // eQSL gives a date now. Use current date as fallback only
'COL_EQSL_QSL_RCVD' => $qsl_status,
// Incoming QSLMSG to be stored in QSLMSG_RCVD
'COL_QSLMSG_RCVD' => htmlentities($qslmsg)
'COL_QSLMSG_RCVD' => htmlentities($qslmsg ?? '')
);
$this->db->where('COL_TIME_ON >= DATE_ADD(DATE_FORMAT("' . $datetime . '", \'%Y-%m-%d %H:%i\' ), INTERVAL -15 MINUTE )');