Checks freq field is supplied in the ADIF record before trying to create a band from it
这个提交包含在:
父节点
e2ff5d77c1
当前提交
1f8daf0681
共有 1 个文件被更改,包括 7 次插入 和 2 次删除
|
|
@ -813,6 +813,7 @@ class Logbook_model extends CI_Model {
|
|||
}else{
|
||||
$freqlng = 0;
|
||||
}
|
||||
|
||||
if(isset($record['freq']) && $freqlng < 7 ) {
|
||||
$cleansedstring = preg_replace('#\W#', '', $record['freq']);
|
||||
$freq = $cleansedstring."000";
|
||||
|
|
@ -853,19 +854,23 @@ class Logbook_model extends CI_Model {
|
|||
if(isset($record['band'])) {
|
||||
$band = $record['band'];
|
||||
} else {
|
||||
if (isset($record['freq'])){
|
||||
$myfreq = str_replace(array('.', ','), '' , $record['freq'].'0');
|
||||
|
||||
$band = $CI->frequency->GetBand($myfreq);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if(isset($record['band_rx'])) {
|
||||
$band_rx = $record['band_rx'];
|
||||
} else {
|
||||
if (isset($record['freq'])){
|
||||
$myfreq = str_replace(array('.', ','), '' , $record['freq'].'0');
|
||||
|
||||
$band_rx = $CI->frequency->GetBand($myfreq);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$this->db->where('COL_CALL', $record['call']);
|
||||
|
|
|
|||
正在加载…
在新工单中引用