Fixed an issue that I had fixed for imports when the QRZ session key had expired lookups would fail. Now it does the same thing for manually entering QSOs

这个提交包含在:
Jeremy Brown 2020-11-16 10:00:47 -05:00
父节点 bf24cff4aa
当前提交 4ed092b955

查看文件

@ -491,8 +491,14 @@ class Logbook extends CI_Controller {
$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= $this->qrz->search($id, $this->session->userdata('qrz_session_key'), $this->config->item('use_fullname'));
$data['callsign'] = $this->qrz->search($id, $this->session->userdata('qrz_session_key'), $this->config->item('use_fullname'));
if (empty($data['callsign']))
{
$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 = $this->qrz->search($id, $this->session->userdata('qrz_session_key'), $this->config->item('use_fullname'));
}
}
// There's no hamli integration? Disabled for now.