From 7630db5c3abb2a00bcb8db35f280724df37b1242 Mon Sep 17 00:00:00 2001 From: Peter Goodhall Date: Sun, 6 Sep 2020 17:44:06 +0100 Subject: [PATCH] [LoTW] Added extra error if LoTW data is missing --- application/controllers/Lotw.php | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/application/controllers/Lotw.php b/application/controllers/Lotw.php index 43c77974..5a1da427 100644 --- a/application/controllers/Lotw.php +++ b/application/controllers/Lotw.php @@ -513,10 +513,14 @@ class Lotw extends CI_Controller { unlink($filepath); - $data['page_title'] = "LoTW ADIF Information"; - $this->load->view('interface_assets/header', $data); - $this->load->view('lotw/analysis'); - $this->load->view('interface_assets/footer'); + if(isset($data['lotw_table_headers']) { + $data['page_title'] = "LoTW ADIF Information"; + $this->load->view('interface_assets/header', $data); + $this->load->view('lotw/analysis'); + $this->load->view('interface_assets/footer'); + } else { + echo "LoTW Downloading failed either due to it being down or incorrect logins."; + } } function lotw_download() {