mirror of
https://github.com/magicbug/Cloudlog
synced 2024-11-23 01:59:14 +00:00
[Awards] Fix error when no bands are selected for POTA, SOTA and WWFF
This commit is contained in:
parent
35a2c46783
commit
c368dca536
@ -15,6 +15,8 @@ class Pota extends CI_Model {
|
||||
|
||||
$bandslots = $this->bands->get_worked_bands('pota');
|
||||
|
||||
if(!$bandslots) return null;
|
||||
|
||||
$this->db->where_in("station_id", $logbooks_locations_array);
|
||||
$this->db->where_in("col_band", $bandslots);
|
||||
$this->db->order_by("COL_POTA_REF", "ASC");
|
||||
|
@ -15,6 +15,8 @@ class Sota extends CI_Model {
|
||||
|
||||
$bandslots = $this->bands->get_worked_bands('sota');
|
||||
|
||||
if(!$bandslots) return null;
|
||||
|
||||
$this->db->where_in("station_id", $logbooks_locations_array);
|
||||
$this->db->where_in("col_band", $bandslots);
|
||||
$this->db->order_by("COL_SOTA_REF", "ASC");
|
||||
|
@ -15,6 +15,8 @@ class Wwff extends CI_Model {
|
||||
|
||||
$bandslots = $this->bands->get_worked_bands('wwff');
|
||||
|
||||
if(!$bandslots) return null;
|
||||
|
||||
$this->db->where_in("station_id", $logbooks_locations_array);
|
||||
$this->db->where_in("col_band", $bandslots);
|
||||
$this->db->order_by("COL_WWFF_REF", "ASC");
|
||||
|
Loading…
Reference in New Issue
Block a user