Skip to content

A free, self-hostable news aggregator…

Fix CLI user creation warning when language is not given (#8283)

Alexandre Alapetite3c4a46e6ba23
diff --git a/app/Controllers/userController.php b/app/Controllers/userController.php
index 50a89eb3c..84ef85335 100644
--- a/app/Controllers/userController.php
+++ b/app/Controllers/userController.php
@@ -361,7 +361,7 @@ class FreshRSS_user_Controller extends FreshRSS_ActionController {
$configPath = '';
if ($ok) {
- if (!Minz_Translate::exists(is_string($userConfig['language']) ? $userConfig['language'] : '')) {
+ if (!Minz_Translate::exists(is_string($userConfig['language'] ?? null) ? $userConfig['language'] : '')) {
$userConfig['language'] = Minz_Translate::DEFAULT_LANGUAGE;
}