From db92647a5541d4860f61491374f7019a8fc3820a Mon Sep 17 00:00:00 2001 From: ardiakov Date: Mon, 21 Oct 2019 17:04:57 +0300 Subject: [PATCH] Locale fix --- Locale.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Locale.php b/Locale.php index 931400d4..fa2da7e5 100644 --- a/Locale.php +++ b/Locale.php @@ -85,7 +85,9 @@ public static function getFallback($locale): ?string array_pop($localeSubTags); - return locale_compose($localeSubTags); + $fallback = locale_compose($localeSubTags); + + return false !== $fallback ? $fallback : null; } if (false !== $pos = strrpos($locale, '_')) {