From f22bb9fb85ab3e653839525f6b067df5faaf45ed Mon Sep 17 00:00:00 2001 From: int2001 Date: Fri, 8 Mar 2024 08:45:46 +0000 Subject: [PATCH] PHP-Part of adding bearing to contest --- application/controllers/Contesting.php | 2 +- application/views/contesting/index.php | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/application/controllers/Contesting.php b/application/controllers/Contesting.php index 672f97f42..e0e7be6cb 100644 --- a/application/controllers/Contesting.php +++ b/application/controllers/Contesting.php @@ -178,6 +178,7 @@ class Contesting extends CI_Controller { * Function is used for dupe-checking in contestinglogging */ public function checkIfWorkedBefore() { + session_write_close(); $call = $this->input->post('call'); $band = $this->input->post('band'); $mode = $this->input->post('mode'); @@ -186,7 +187,6 @@ class Contesting extends CI_Controller { $this->load->model('Contesting_model'); $result = $this->Contesting_model->checkIfWorkedBefore($call, $band, $mode, $contest); - header('Content-Type: application/json'); if ($result && $result->num_rows()) { $timeb4=substr($result->row()->b4,0,5); diff --git a/application/views/contesting/index.php b/application/views/contesting/index.php index 6b8f77cf6..c3a0b6da1 100644 --- a/application/views/contesting/index.php +++ b/application/views/contesting/index.php @@ -103,7 +103,8 @@
- +
+