diff --git a/application/controllers/Adif.php b/application/controllers/Adif.php index f5af122b5..ce2cca170 100644 --- a/application/controllers/Adif.php +++ b/application/controllers/Adif.php @@ -170,6 +170,8 @@ class adif extends CI_Controller { $config['upload_path'] = './uploads/'; $config['allowed_types'] = 'adi|ADI|adif|ADIF|zip'; + log_message("Error","ADIF Start"); + session_write_close(); $this->load->library('upload', $config); if ( ! $this->upload->do_upload()) { @@ -238,6 +240,7 @@ class adif extends CI_Controller { $custom_errors='Station Profile not valid for User'; } + log_message("Error","ADIF End"); $data['adif_errors'] = $custom_errors; $data['skip_dupes'] = $this->input->post('skipDuplicate'); diff --git a/application/models/Logbook_model.php b/application/models/Logbook_model.php index ccf8af929..cc8941000 100755 --- a/application/models/Logbook_model.php +++ b/application/models/Logbook_model.php @@ -3238,7 +3238,7 @@ function lotw_last_qsl_date($user_id) { if ($dxccAdif != NULL) { if (isset($record['dxcc'])) { $entity = $this->get_entity($record['dxcc']); - $dxcc = array($record['dxcc'], $entity['name']); + $dxcc = array($record['dxcc'] ?? '', $entity['name'] ?? ''); } else { $dxcc = $this->check_dxcc_table($record['call'], $time_off); }