diff options
Diffstat (limited to 'lib/private')
-rw-r--r-- | lib/private/L10N/Factory.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/private/L10N/Factory.php b/lib/private/L10N/Factory.php index 150b36cec44..e277a00e653 100644 --- a/lib/private/L10N/Factory.php +++ b/lib/private/L10N/Factory.php @@ -290,8 +290,9 @@ class Factory implements IFactory { // use formal version of german ("Sie" instead of "Du") if the default // language is set to 'de_DE' if possible - if (strtolower($lang) === 'de' - && strtolower($defaultLanguage) === 'de_de' && + if (is_string($defaultLanguage) && + strtolower($lang) === 'de' && + strtolower($defaultLanguage) === 'de_de' && $this->languageExists($app, 'de_DE') ) { $result = 'de_DE'; |