Remove DXCC NONE from DXCC award

This commit is contained in:
phl0
2024-11-03 13:04:42 +01:00
parent 4218fd17dd
commit 4402ef26c7

View File

@@ -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);