From 3c4a46e6ba23f310065334e08ecdf73360c330cd Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Wed, 3 Dec 2025 23:41:06 +0100 Subject: [PATCH] Fix CLI user creation warning when language is not given (#8283) Discovered during https://github.com/FreshRSS/FreshRSS/pull/8277 --- app/Controllers/userController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }