From a063f99ec7a5472379275c0ec1b846a65db4e593 Mon Sep 17 00:00:00 2001 From: phl0 Date: Wed, 10 Apr 2024 10:02:21 +0200 Subject: [PATCH] Repair display of country flags --- application/libraries/DxccFlag.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/application/libraries/DxccFlag.php b/application/libraries/DxccFlag.php index ddef37e6e..fc51e24d2 100644 --- a/application/libraries/DxccFlag.php +++ b/application/libraries/DxccFlag.php @@ -409,8 +409,11 @@ class DxccFlag '522' => "\u{1F1FD}\u{1F1F0}" //REPUBLIC OF KOSOVO ); - public function get($dxcc) { - if ($dxcc ?? '' == '') { $dxcc='0'; } // Failover if Empty or NULL - return $this->dxccFlags[$dxcc]; + public function get($dxcc = 0) { + if ($dxcc == 0) { + return 0; + } else { + return $this->dxccFlags[$dxcc]; + } } }