[Timeplotter] Fixed error when no QSOs found.
这个提交包含在:
父节点
8719441eb6
当前提交
e257ffa109
共有 1 个文件被更改,包括 7 次插入 和 0 次删除
|
|
@ -9,6 +9,13 @@ class Timeplotter_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');
|
||||||
|
$data['error'] = 'No QSOs found to plot!';
|
||||||
|
echo json_encode($data);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$this->db->select('time(col_time_on) time, col_call as callsign');
|
$this->db->select('time(col_time_on) time, col_call as callsign');
|
||||||
|
|
||||||
if ($postdata['band'] != 'All') {
|
if ($postdata['band'] != 'All') {
|
||||||
|
|
|
||||||
正在加载…
在新工单中引用