Fixed error on partial log lookups only using hamli which is now removed.
这个提交包含在:
父节点
0c8c14ed8c
当前提交
6ad34e5165
共有 1 个文件被更改,包括 17 次插入 和 2 次删除
|
|
@ -283,8 +283,23 @@ class Logbook extends CI_Controller {
|
|||
}
|
||||
echo "</table>";
|
||||
} else {
|
||||
if ($this->config->item('callbook') == "qrz" && $this->config->item('qrz_username') != null && $this->config->item('qrz_password') != null) {
|
||||
// Lookup using QRZ
|
||||
$this->load->library('qrz');
|
||||
|
||||
if(!$this->session->userdata('qrz_session_key')) {
|
||||
$qrz_session_key = $this->qrz->session($this->config->item('qrz_username'), $this->config->item('qrz_password'));
|
||||
$this->session->set_userdata('qrz_session_key', $qrz_session_key);
|
||||
}
|
||||
|
||||
$data['callsign'] = $this->qrz->search($id, $this->session->userdata('qrz_session_key'));
|
||||
} else {
|
||||
// Lookup using hamli
|
||||
$this->load->library('hamli');
|
||||
|
||||
$data['callsign'] = $this->hamli->callsign($id);
|
||||
}
|
||||
|
||||
$data['id'] = strtoupper($id);
|
||||
|
||||
$this->load->view('search/result', $data);
|
||||
|
|
|
|||
正在加载…
在新工单中引用