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{
|
}else{
|
||||||
$freqlng = 0;
|
$freqlng = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(isset($record['freq']) && $freqlng < 7 ) {
|
if(isset($record['freq']) && $freqlng < 7 ) {
|
||||||
$cleansedstring = preg_replace('#\W#', '', $record['freq']);
|
$cleansedstring = preg_replace('#\W#', '', $record['freq']);
|
||||||
$freq = $cleansedstring."000";
|
$freq = $cleansedstring."000";
|
||||||
|
|
@ -853,18 +854,22 @@ class Logbook_model extends CI_Model {
|
||||||
if(isset($record['band'])) {
|
if(isset($record['band'])) {
|
||||||
$band = $record['band'];
|
$band = $record['band'];
|
||||||
} else {
|
} else {
|
||||||
|
if (isset($record['freq'])){
|
||||||
$myfreq = str_replace(array('.', ','), '' , $record['freq'].'0');
|
$myfreq = str_replace(array('.', ','), '' , $record['freq'].'0');
|
||||||
|
|
||||||
$band = $CI->frequency->GetBand($myfreq);
|
$band = $CI->frequency->GetBand($myfreq);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if(isset($record['band_rx'])) {
|
if(isset($record['band_rx'])) {
|
||||||
$band_rx = $record['band_rx'];
|
$band_rx = $record['band_rx'];
|
||||||
} else {
|
} else {
|
||||||
$myfreq = str_replace(array('.', ','), '' , $record['freq'].'0');
|
if (isset($record['freq'])){
|
||||||
|
$myfreq = str_replace(array('.', ','), '' , $record['freq'].'0');
|
||||||
|
|
||||||
$band_rx = $CI->frequency->GetBand($myfreq);
|
$band_rx = $CI->frequency->GetBand($myfreq);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
正在加载…
在新工单中引用