From 007488f7a796e19d17bdf4c286b7ab668c56f0c4 Mon Sep 17 00:00:00 2001 From: int2001 Date: Thu, 13 Jul 2023 06:29:04 +0000 Subject: [PATCH] pass user_id (if exists) to lotw_download --- application/controllers/Lotw.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/application/controllers/Lotw.php b/application/controllers/Lotw.php index 43b7aa4e2..aa506fc0f 100644 --- a/application/controllers/Lotw.php +++ b/application/controllers/Lotw.php @@ -355,8 +355,11 @@ class Lotw extends CI_Controller { /* | Download QSO Matches from LoTW */ - if ($this->user_model->authorize(2)) { // Only be verbose if we have a session + if ($this->user_model->authorize(2)) { echo "

"; + $sync_user_id=$this->session->userdata('user_id'); + } else { + $sync_user_id=null; } echo $this->lotw_download($sync_user_id); }