From 1fde0674fd887c46cee4fc4cd892b3011fde43dd Mon Sep 17 00:00:00 2001 From: Andreas Kristiansen <6977712+AndreasK79@users.noreply.github.com> Date: Wed, 19 Nov 2025 14:35:39 +0100 Subject: [PATCH] Pushed fix for empty result --- application/controllers/Awards.php | 2 +- application/views/awards/dxcc/index.php | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/application/controllers/Awards.php b/application/controllers/Awards.php index 57e0394d8..ebf2cb56d 100644 --- a/application/controllers/Awards.php +++ b/application/controllers/Awards.php @@ -184,7 +184,7 @@ class Awards extends CI_Controller { } $dxcclist = $this->dxcc->fetchdxcc($postdata); - if ($dxcclist[0]->adif == "0") { + if ($dxcclist && $dxcclist[0]->adif == "0") { unset($dxcclist[0]); } $data['dxcc_array'] = $this->dxcc->get_dxcc_array($dxcclist, $bands, $postdata); diff --git a/application/views/awards/dxcc/index.php b/application/views/awards/dxcc/index.php index 0fa422286..a05ec39b1 100644 --- a/application/views/awards/dxcc/index.php +++ b/application/views/awards/dxcc/index.php @@ -210,9 +210,6 @@ -
- -
@@ -353,7 +350,7 @@ '; } else { - echo ''; + echo ''; } ?>