From 1bd12b9a0bde5891b72e9c7f73275f9491f04366 Mon Sep 17 00:00:00 2001 From: flashwave Date: Wed, 5 Jul 2023 23:12:44 +0000 Subject: [PATCH] Fixed country name not having a value for XX or any other fallback. --- utility.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/utility.php b/utility.php index 2d036336..7138443b 100644 --- a/utility.php +++ b/utility.php @@ -318,5 +318,7 @@ function get_country_name(string $code): string { 'ZA' => 'South Africa', 'ZM' => 'Zambia', 'ZW' => 'Zimbabwe', + + default => 'Unknown', }; }