mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Merge remote-tracking branch 'upstream/dev' into impersonate
This commit is contained in:
@@ -412,7 +412,7 @@ class User_Model extends CI_Model {
|
||||
if ($u == null) {
|
||||
$u = $this->get_by_id($id);
|
||||
}
|
||||
|
||||
|
||||
$userdata = array(
|
||||
'user_id' => $u->row()->user_id,
|
||||
'user_name' => $u->row()->user_name,
|
||||
@@ -454,14 +454,16 @@ class User_Model extends CI_Model {
|
||||
'isWinkeyEnabled' => $u->row()->winkey,
|
||||
'hasQrzKey' => $this->hasQrzKey($u->row()->user_id)
|
||||
);
|
||||
|
||||
|
||||
foreach (array_keys($this->frequency->defaultFrequencies) as $band) {
|
||||
$qrg_unit = $this->session->userdata("qrgunit_$band") ?? ($this->user_options_model->get_options('frequency', array('option_name' => 'unit', 'option_key' => $band))->row()->option_value ?? '');
|
||||
$qrg_unit = $this->session->userdata("qrgunit_$band") ?? ($this->user_options_model->get_options('frequency', array('option_name' => 'unit', 'option_key' => $band), $u->row()->user_id)->row()->option_value ?? '');
|
||||
if ($qrg_unit !== '') {
|
||||
$userdata['qrgunit_'.$band] = $qrg_unit;
|
||||
} else {
|
||||
$userdata['qrgunit_'.$band] = $this->frequency->defaultFrequencies[$band]['UNIT'];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$this->session->set_userdata($userdata);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user