catch no results

This commit is contained in:
HB9HIL
2024-12-20 13:35:30 +01:00
parent 4f6b47e215
commit d77e32deee

View File

@@ -163,7 +163,7 @@ class Qslprint_model extends CI_Model {
GROUP BY COL_CALL, COL_MODE, COL_BAND, COL_SAT_NAME";
// we only return the count of previous QSLs as an integer
return (int) $this->db->query($sql, [$qso_id, $qso_id])->row()->previous_qsl;
return (int) $this->db->query($sql, [$qso_id, $qso_id])->row()->previous_qsl ?? 0;
}
function show_oqrs($id) {