diff --git a/settings/personal.php b/settings/personal.php
index d6d016c6545a23f17eb2dbc337335c7a0c19dd24..bf1e1ad87935f2a9c98c2f1a7617a2e800b05949 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