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