diff --git a/application/controllers/Statistics.php b/application/controllers/Statistics.php index 1fcbf1af2..cbe4400f8 100644 --- a/application/controllers/Statistics.php +++ b/application/controllers/Statistics.php @@ -122,8 +122,8 @@ class Statistics extends CI_Controller { $modestats[$i++]['total'] = $this->logbook_model->total_cw($yr); $modestats[$i]['mode'] = 'fm'; $modestats[$i++]['total'] = $this->logbook_model->total_fm($yr); - $modestats[$i]['mode'] = 'others'; - $modestats[$i++]['total'] = $this->logbook_model->total_others($yr); + $modestats[$i]['mode'] = 'am'; + $modestats[$i++]['total'] = $this->logbook_model->total_am($yr); $modestats[$i]['mode'] = 'digi'; $modestats[$i]['total'] = $this->logbook_model->total_digi($yr); usort($modestats, fn($a, $b) => $b['total'] <=> $a['total']); diff --git a/application/models/Logbook_model.php b/application/models/Logbook_model.php index de5cefaa6..1d10486ff 100644 --- a/application/models/Logbook_model.php +++ b/application/models/Logbook_model.php @@ -3002,7 +3002,7 @@ class Logbook_model extends CI_Model { } /* Return total number of FM QSOs */ - function total_others($yr = 'All') { + function total_am($yr = 'All') { $this->load->model('logbooks_model'); $logbooks_locations_array = $this->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook')); @@ -3013,7 +3013,7 @@ class Logbook_model extends CI_Model { $this->db->select('COUNT( * ) as count', FALSE); $this->db->where_in('station_id', $logbooks_locations_array); - $this->db->where_not_in('COL_MODE', array('FM','CW','DIGI','SSB','LSB','USB')); + $this->db->where('COL_MODE', 'AM'); $this->where_year($yr); $query = $this->db->get($this->config->item('table_name'));