From d9502f312fd7a570bbece7c23b555525dd6a8fe6 Mon Sep 17 00:00:00 2001 From: int2001 Date: Fri, 12 Jan 2024 15:51:16 +0000 Subject: [PATCH] Added session_write_close() to uploader, so it won't block other activities any longer --- application/controllers/Adif.php | 3 +++ application/models/Logbook_model.php | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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); }