Change RTTY75 mode on ADIF import to RTTY

pull/150/head
Peter Goodhall 2013-10-30 19:56:41 +00:00
rodzic 67e99779ac
commit 00c4ad494c
1 zmienionych plików z 10 dodań i 1 usunięć

Wyświetl plik

@ -760,6 +760,15 @@ class Logbook_model extends CI_Model {
$srx = null;
}
// Filter Modes if not apart of ADIF spec
if($record['mode'] == "RTTY75") {
// Set RTTY75 to just RTTY
$mode = "RTTY";
} else {
// If no other rules just plain mode that adif includes
$mode = $record['mode'];
}
$this->db->where('COL_CALL', $record['call']);
$this->db->where('COL_TIME_ON', $time_on);
@ -774,7 +783,7 @@ class Logbook_model extends CI_Model {
'COL_CALL' => strtoupper($record['call']),
'COL_BAND' => $band,
'COL_FREQ' => $freq,
'COL_MODE' => $record['mode'],
'COL_MODE' => $mode,
'COL_RST_RCVD' => $rst_rx,
'COL_RST_SENT' => $rst_tx,
'COL_NAME' => $name,