Added session_write_close() to uploader, so it won't block other activities any longer

This commit is contained in:
int2001
2024-01-12 15:51:16 +00:00
parent 4f2ff6b1de
commit d9502f312f
2 changed files with 4 additions and 1 deletions

View File

@@ -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');

View File

@@ -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);
}