From 636af12d66db36f5672baac70f50dbdbca16fc64 Mon Sep 17 00:00:00 2001 From: Peter Goodhall Date: Wed, 2 Sep 2020 11:45:50 +0100 Subject: [PATCH] move on if LOTW cert isnt found --- application/controllers/Lotw.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/application/controllers/Lotw.php b/application/controllers/Lotw.php index 2035e577..c8040ff7 100644 --- a/application/controllers/Lotw.php +++ b/application/controllers/Lotw.php @@ -180,6 +180,10 @@ class Lotw extends CI_Controller { $data['station_profile'] = $station_profile; $data['lotw_cert_info'] = $this->LotwCert->lotw_cert_details($station_profile->station_callsign); + if(!iset($data['lotw_cert_info']->cert_dxcc)) { + continue; + } + $this->load->model('Dxcc'); $data['station_profile_dxcc'] = $this->Dxcc->lookup_country($data['lotw_cert_info']->cert_dxcc);