From 91e199ae1f20449dee969243dc5f02cf5a57f590 Mon Sep 17 00:00:00 2001 From: Andreas <6977712+AndreasK79@users.noreply.github.com> Date: Sun, 7 May 2023 09:31:45 +0200 Subject: [PATCH] [eQSL] Added missing userid, and corrected password variable --- application/controllers/Eqsl.php | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/application/controllers/Eqsl.php b/application/controllers/Eqsl.php index 18a3ca34..879f6cec 100644 --- a/application/controllers/Eqsl.php +++ b/application/controllers/Eqsl.php @@ -583,7 +583,9 @@ class eqsl extends CI_Controller { $this->load->model('eqslmethods_model'); $config['upload_path'] = './uploads/'; - $eqsl_locations = $this->eqslmethods_model->all_of_user_with_eqsl_nick_defined(); + $eqsl_locations = $this->eqslmethods_model->all_of_user_with_eqsl_nick_defined($userid); + + $eqsl_results = array(); foreach ($eqsl_locations->result_array() as $eqsl_location) { $this->eqslimporter->from_callsign_and_QTH( @@ -592,18 +594,11 @@ class eqsl extends CI_Controller { $config['upload_path'] ); - $eqsl_results[] = $this->eqslimporter->fetch($eqsl_password); + $eqsl_results[] = $this->eqslimporter->fetch($password); } echo 'Result from eQSL download:

'; - foreach ($eqsl_results as $result) { - foreach ($result as $r) { - echo $r->name . '
'; - echo $r->adif_file . '
'; - echo $r->qsos . '
'; - echo $r->status . '

'; - } - } + var_dump($eqsl_results); } function uploadUser($userid, $username, $password) {