Fixed issue where map wasn't displayed if it was showing it based on dxcc when gridsquare isn't provided
这个提交包含在:
父节点
13b741fd57
当前提交
a79187c9be
共有 1 个文件被更改,包括 6 次插入 和 11 次删除
|
|
@ -203,18 +203,13 @@
|
|||
$lat = $stn_loc[0];
|
||||
$lng = $stn_loc[1];
|
||||
} else {
|
||||
$query = $this->db->query('
|
||||
SELECT *
|
||||
FROM dxcc_entities
|
||||
WHERE prefix = SUBSTRING( \''.$row->COL_CALL.'\', 1, LENGTH( prefix ) )
|
||||
ORDER BY LENGTH( prefix ) DESC
|
||||
LIMIT 1
|
||||
');
|
||||
|
||||
foreach ($query->result() as $dxcc) {
|
||||
$lat = $dxcc->lat;
|
||||
$lng = $dxcc->long;
|
||||
}
|
||||
$CI =& get_instance();
|
||||
$CI->load->model('Logbook_model');
|
||||
|
||||
$result = $CI->Logbook_model->dxcc_lookup($row->COL_CALL, $row->COL_TIME_ON);
|
||||
$lat = $result['lat'];
|
||||
$lng = $result['long'];
|
||||
}
|
||||
?>
|
||||
|
||||
|
|
|
|||
正在加载…
在新工单中引用