mirror of
https://github.com/magicbug/Cloudlog
synced 2026-08-13 17:49:35 -04:00
Fixed error on partial log lookups only using hamli which is now removed.
This commit is contained in:
parent
0c8c14ed8c
commit
6ad34e5165
1 changed files with 17 additions and 2 deletions
|
|
@ -283,8 +283,23 @@ class Logbook extends CI_Controller {
|
|||
}
|
||||
echo "</table>";
|
||||
} else {
|
||||
$this->load->library('hamli');
|
||||
$data['callsign'] = $this->hamli->callsign($id);
|
||||
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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue