当前提交
						35032f04a7
					
				
					共有  1 个文件被更改,包括 6 次插入 和 8 次删除
				
			
		|  | @ -631,6 +631,12 @@ class Lotw extends CI_Controller { | |||
| 
 | ||||
| 		if ($query->num_rows() >= 1) { | ||||
| 			$result = ''; | ||||
| 
 | ||||
| 			// Get URL for downloading LoTW
 | ||||
| 			$url_query = $this->db->query('SELECT lotw_download_url FROM config'); | ||||
| 			$q = $url_query->row(); | ||||
| 			$lotw_url = $q->lotw_download_url; | ||||
| 
 | ||||
| 			foreach ($query->result() as $user) { | ||||
| 				if ( ($sync_user_id != null) && ($sync_user_id != $user->user_id) ) { continue; } | ||||
| 
 | ||||
|  | @ -652,11 +658,6 @@ class Lotw extends CI_Controller { | |||
| 		    	$data['user_lotw_name'] = urlencode($user->user_lotw_name); | ||||
| 				$data['user_lotw_password'] = urlencode($user->user_lotw_password); | ||||
| 
 | ||||
| 				// Get URL for downloading LoTW
 | ||||
| 				$query = $query = $this->db->query('SELECT lotw_download_url FROM config'); | ||||
| 				$q = $query->row(); | ||||
| 				$lotw_url = $q->lotw_download_url; | ||||
| 
 | ||||
| 				$lotw_last_qsl_date = date('Y-m-d', strtotime($this->logbook_model->lotw_last_qsl_date($user->user_id))); | ||||
| 
 | ||||
| 				// Build URL for LoTW report file
 | ||||
|  | @ -681,9 +682,6 @@ class Lotw extends CI_Controller { | |||
| 				ini_set('memory_limit', '-1'); | ||||
| 				$result = $this->loadFromFile($file, false); | ||||
| 			} | ||||
| 			if ($result == '') { | ||||
| 				$result = "You have not defined your ARRL LoTW credentials!"; | ||||
| 			} | ||||
| 			return $result; | ||||
| 		} else { | ||||
| 			return "No LoTW User details found to carry out matches."; | ||||
|  |  | |||
		正在加载…
	
		在新工单中引用