From ece853a2898ea5c0fd20d0da4f6ce5597d84dc99 Mon Sep 17 00:00:00 2001 From: phl0 Date: Thu, 30 Nov 2023 13:15:36 +0100 Subject: [PATCH] Fix re-appending to LoTW download URL in loop --- application/controllers/Lotw.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/controllers/Lotw.php b/application/controllers/Lotw.php index 8e1f475f..ff8dfb08 100644 --- a/application/controllers/Lotw.php +++ b/application/controllers/Lotw.php @@ -635,7 +635,7 @@ class Lotw extends CI_Controller { // Get URL for downloading LoTW $url_query = $this->db->query('SELECT lotw_download_url FROM config'); $q = $url_query->row(); - $lotw_url = $q->lotw_download_url; + $lotw_base_url = $q->lotw_download_url; foreach ($query->result() as $user) { if ( ($sync_user_id != null) && ($sync_user_id != $user->user_id) ) { continue; } @@ -661,7 +661,7 @@ class Lotw extends CI_Controller { $lotw_last_qsl_date = date('Y-m-d', strtotime($this->logbook_model->lotw_last_qsl_date($user->user_id))); // Build URL for LoTW report file - $lotw_url .= "?"; + $lotw_url = $lotw_base_url."?"; $lotw_url .= "login=" . $data['user_lotw_name']; $lotw_url .= "&password=" . $data['user_lotw_password']; $lotw_url .= "&qso_query=1&qso_qsl='yes'&qso_qsldetail='yes'&qso_mydetail='yes'";