[Distances Worked] Fix for QSOs not found
这个提交包含在:
父节点
341e8f4a33
当前提交
cd71d48656
共有 1 个文件被更改,包括 6 次插入 和 0 次删除
|
|
@ -10,6 +10,12 @@ class Distances_model extends CI_Model
|
||||||
$CI->load->model('logbooks_model');
|
$CI->load->model('logbooks_model');
|
||||||
$logbooks_locations_array = $CI->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook'));
|
$logbooks_locations_array = $CI->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook'));
|
||||||
|
|
||||||
|
if (!$logbooks_locations_array) {
|
||||||
|
header('Content-Type: application/json');
|
||||||
|
echo json_encode(array('Error' => 'No QSOs found to plot.'));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$result = array();
|
$result = array();
|
||||||
|
|
||||||
foreach ($logbooks_locations_array as $station_id) {
|
foreach ($logbooks_locations_array as $station_id) {
|
||||||
|
|
|
||||||
正在加载…
在新工单中引用