stx, srx on adif errored due to not being within if statements fixed

This commit is contained in:
Peter Goodhall
2012-11-01 02:16:18 +00:00
parent 2a03c6af15
commit 3f2e327c71
3 changed files with 7803 additions and 3 deletions

View File

@@ -91,7 +91,7 @@ class adif extends CI_Controller {
$this->logbook_model->import($record);
//echo $record["call"]."<br>";
print_r($record);
//print_r($record);
};
unlink('./uploads/'.$data['upload_data']['file_name']);

View File

@@ -689,6 +689,18 @@ class Logbook_model extends CI_Model {
} else {
$QSLSENT = null;
}
if(isset($record['stx'])) {
$stx = $record['stx'];
} else {
$stx = null;
}
if(isset($record['srx'])) {
$srx = $record['srx'];
} else {
$srx = null;
}
$this->db->where('COL_CALL', $record['call']);
$this->db->where('COL_TIME_ON', $time_on);
@@ -719,8 +731,8 @@ class Logbook_model extends CI_Model {
'COL_BAND_RX' => 0,
'COL_ANT_AZ' => 0,
'COL_ANT_EL' => 0,
'COL_STX_STRING' => $record['stx'],
'COL_SRX_STRING' => $record['srx'],
'COL_STX_STRING' => $stx,
'COL_SRX_STRING' => $srx,
'COL_IOTA' => $iota,
'COL_QSLRDATE' => $QSLRDATE,
'COL_QSL_RCVD' => $QSLRCVD,

7788
uploads/log.adi Normal file

File diff suppressed because it is too large Load Diff