aboutsummaryrefslogtreecommitdiffstats
path: root/settings/personal.php
diff options
context:
space:
mode:
Diffstat (limited to 'settings/personal.php')
-rw-r--r--settings/personal.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/settings/personal.php b/settings/personal.php
index d6d016c6545..bf1e1ad8793 100644
--- a/settings/personal.php
+++ b/settings/personal.php
@@ -93,6 +93,14 @@ foreach($languageCodes as $lang) {
}
}
+// if user language is not available but set somehow: show the actual code as name
+if (!is_array($userLang)) {
+ $userLang = [
+ 'code' => $userLang,
+ 'name' => $userLang,
+ ];
+}
+
ksort($commonlanguages);
// sort now by displayed language not the iso-code