diff options
-rw-r--r-- | apps/settings/lib/Settings/Personal/PersonalInfo.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/settings/lib/Settings/Personal/PersonalInfo.php b/apps/settings/lib/Settings/Personal/PersonalInfo.php index ee309873969..646ad04b236 100644 --- a/apps/settings/lib/Settings/Personal/PersonalInfo.php +++ b/apps/settings/lib/Settings/Personal/PersonalInfo.php @@ -251,6 +251,13 @@ class PersonalInfo implements ISettings { return 0 === strpos($localeCode['code'], $userLang); }); + if (!$userLocale) { + $userLocale = [ + 'code' => 'en', + 'name' => 'English' + ]; + } + return [ 'activelocaleLang' => $userLocaleString, 'activelocale' => $userLocale, |