diff --git a/application/controllers/Awards.php b/application/controllers/Awards.php index 55fb874c8..a0aab2277 100644 --- a/application/controllers/Awards.php +++ b/application/controllers/Awards.php @@ -186,7 +186,6 @@ class Awards extends CI_Controller { $postdata['dateTo'] = null; } - if ($logbooks_locations_array) { $location_list = "'".implode("','",$logbooks_locations_array)."'"; $dxcclist = $this->dxcc->fetchdxcc($postdata, $location_list); @@ -1758,14 +1757,12 @@ class Awards extends CI_Controller { $this->load->model('logbooks_model'); $logbooks_locations_array = $this->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook')); - $dxcclist = $this->dxcc->fetchdxcc($postdata, $logbooks_locations_array); - - if ($dxcclist[0]->adif == "0") { - unset($dxcclist[0]); - } - if ($logbooks_locations_array) { $location_list = "'".implode("','",$logbooks_locations_array)."'"; + $dxcclist = $this->dxcc->fetchdxcc($postdata, $location_list); + if ($dxcclist[0]->adif == "0") { + unset($dxcclist[0]); + } $dxcc_array = $this->dxcc->get_dxcc_array($dxcclist, $bands, $postdata, $location_list, true); } else { $location_list = null;