Added message when logbook is not defined.

This commit is contained in:
Andreas 2022-07-03 13:32:12 +02:00
parent a28eb44ac4
commit 126c551007
2 changed files with 6 additions and 0 deletions

View File

@ -50,6 +50,10 @@ class Logbook extends CI_Controller {
//load the model and get results
$data['results'] = $this->logbook_model->get_qsos($config['per_page'],$this->uri->segment(3));
if(!$data['results']) {
$this->session->set_flashdata('notice', $this->lang->line('error_no_logbook_found'));
}
// Calculate Lat/Lng from Locator to use on Maps
if($this->session->userdata('user_locator')) {
$this->load->library('qra');

View File

@ -118,3 +118,5 @@ $lang['dashboard_countries_breakdown'] = 'Countries Breakdown';
$lang['gen_from_date'] = 'From date';
$lang['gen_this_qso_was_confirmed_on'] = 'This QSO was confirmed on';
$lang['error_no_logbook_found'] = 'No logbook\'s were found. You need to define a logbook under Station Logbooks!';