diff --git a/src/Symfony/Component/Intl/Locale.php b/src/Symfony/Component/Intl/Locale.php index 9f810235e6f85..f9b3dfb07303a 100644 --- a/src/Symfony/Component/Intl/Locale.php +++ b/src/Symfony/Component/Intl/Locale.php @@ -83,6 +83,10 @@ public static function getFallback($locale) return null; } + if (0 === \count($localSubTags)) { + return null; + } + array_pop($localeSubTags); $fallback = locale_compose($localeSubTags);
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: