Load lib only if not loaded (prevent spilling of logs)
这个提交包含在:
父节点
b0e7d74db1
当前提交
f58b3f5ba0
共有 1 个文件被更改,包括 4 次插入 和 2 次删除
|
|
@ -2845,14 +2845,16 @@ function check_if_callsign_worked_in_logbook($callsign, $StationLocationsArray =
|
|||
if (isset($row)) {
|
||||
$station_gridsquare = $row->station_gridsquare;
|
||||
}
|
||||
$this->load->library('Qra');
|
||||
if(!$this->load->is_loaded('Qra')) {
|
||||
$this->load->library('Qra');
|
||||
}
|
||||
if ($qsl_gridsquare != "") {
|
||||
$data['COL_GRIDSQUARE'] = $qsl_gridsquare;
|
||||
$data['COL_DISTANCE'] = $this->qra->distance($station_gridsquare, $qsl_gridsquare, 'K');
|
||||
} elseif ($qsl_vucc_grids != "") {
|
||||
$data['COL_VUCC_GRIDS'] = $qsl_vucc_grids;
|
||||
$data['COL_DISTANCE'] = $this->qra->distance($station_gridsquare, $qsl_vucc_grids, 'K');
|
||||
}
|
||||
}
|
||||
|
||||
$this->db->where('date_format(COL_TIME_ON, \'%Y-%m-%d %H:%i\') = "'.$datetime.'"');
|
||||
$this->db->where('COL_CALL', $callsign);
|
||||
|
|
|
|||
正在加载…
在新工单中引用