From 4402ef26c748a4521c2b563daaf28a45d5ef209d Mon Sep 17 00:00:00 2001 From: phl0 Date: Sun, 3 Nov 2024 13:04:42 +0100 Subject: [PATCH] Remove DXCC NONE from DXCC award --- application/controllers/Awards.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/application/controllers/Awards.php b/application/controllers/Awards.php index e9bc2085a..71974e94f 100644 --- a/application/controllers/Awards.php +++ b/application/controllers/Awards.php @@ -165,6 +165,9 @@ class Awards extends CI_Controller { } $dxcclist = $this->dxcc->fetchdxcc($postdata); + if ($dxcclist[0]->adif == "0") { + unset($dxcclist[0]); + } $data['dxcc_array'] = $this->dxcc->get_dxcc_array($dxcclist, $bands, $postdata); $data['dxcc_summary'] = $this->dxcc->get_dxcc_summary($bands, $postdata); @@ -1485,6 +1488,9 @@ class Awards extends CI_Controller { $postdata['orbit'] = $this->security->xss_clean($this->input->post('orbit')); $dxcclist = $this->dxcc->fetchdxcc($postdata); + if ($dxcclist[0]->adif == "0") { + unset($dxcclist[0]); + } $dxcc_array = $this->dxcc->get_dxcc_array($dxcclist, $bands, $postdata);