Added message when logbook is not defined.
这个提交包含在:
		
							父节点
							
								
									a28eb44ac4
								
							
						
					
					
						当前提交
						126c551007
					
				
					共有  2 个文件被更改,包括 6 次插入 和 0 次删除
				
			
		|  | @ -50,6 +50,10 @@ class Logbook extends CI_Controller { | ||||||
| 		//load the model and get results
 | 		//load the model and get results
 | ||||||
| 		$data['results'] = $this->logbook_model->get_qsos($config['per_page'],$this->uri->segment(3)); | 		$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
 | 		// Calculate Lat/Lng from Locator to use on Maps
 | ||||||
| 		if($this->session->userdata('user_locator')) { | 		if($this->session->userdata('user_locator')) { | ||||||
| 				$this->load->library('qra'); | 				$this->load->library('qra'); | ||||||
|  |  | ||||||
|  | @ -118,3 +118,5 @@ $lang['dashboard_countries_breakdown'] = 'Countries Breakdown'; | ||||||
| $lang['gen_from_date'] = 'From date'; | $lang['gen_from_date'] = 'From date'; | ||||||
| 
 | 
 | ||||||
| $lang['gen_this_qso_was_confirmed_on'] = 'This QSO was confirmed on'; | $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!'; | ||||||
		正在加载…
	
		在新工单中引用