diff --git a/application/controllers/Logbook.php b/application/controllers/Logbook.php index 224fa8d0..f19dca0d 100755 --- a/application/controllers/Logbook.php +++ b/application/controllers/Logbook.php @@ -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'); diff --git a/application/language/english/general_words_lang.php b/application/language/english/general_words_lang.php index a3dc864d..157482d4 100644 --- a/application/language/english/general_words_lang.php +++ b/application/language/english/general_words_lang.php @@ -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!'; \ No newline at end of file