diff --git a/application/controllers/Contesting.php b/application/controllers/Contesting.php index d0cad9fd8..57a594c70 100644 --- a/application/controllers/Contesting.php +++ b/application/controllers/Contesting.php @@ -23,6 +23,7 @@ class Contesting extends CI_Controller { $data['my_gridsquare'] = $this->stations->find_gridsquare(); $data['radios'] = $this->cat->radios(); + $data['radio_last_updated'] = $this->cat->last_updated()->row(); $data['modes'] = $this->modes->active(); $data['contestnames'] = $this->contesting_model->getActivecontests(); $data['bands'] = $this->bands->get_user_bands_for_qso_entry(); diff --git a/application/controllers/Qso.php b/application/controllers/Qso.php index 5463a0681..9057de11b 100644 --- a/application/controllers/Qso.php +++ b/application/controllers/Qso.php @@ -23,6 +23,7 @@ class QSO extends CI_Controller { $data['notice'] = false; $data['stations'] = $this->stations->all_of_user(); $data['radios'] = $this->cat->radios(); + $data['radio_last_updated'] = $this->cat->last_updated()->row(); $data['query'] = $this->logbook_model->last_custom('5'); $data['dxcc'] = $this->logbook_model->fetchDxcc(); $data['iota'] = $this->logbook_model->fetchIota(); diff --git a/application/controllers/Radio.php b/application/controllers/Radio.php index 65094190c..aabdd14ec 100644 --- a/application/controllers/Radio.php +++ b/application/controllers/Radio.php @@ -84,8 +84,10 @@ class Radio extends CI_Controller { $phpdate = strtotime($row->timestamp); echo "" . date($custom_date_format . ' H:i:s', $phpdate) . ""; - if ($this->session->userdata('radio') !== '' && $this->session->userdata('radio') == $row->id) { - echo '' . __("(last used)") . ''; + $last_updated = $this->cat->last_updated()->row()->id; + + if ($last_updated == $row->id) { + echo '' . __("last updated") . ''; } else { echo ''; } @@ -97,7 +99,7 @@ class Radio extends CI_Controller { if ($defaul_user_radio !== $row->id) { echo '