aboutsummaryrefslogtreecommitdiff
path: root/app/Controllers
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2025-12-03 23:41:06 +0100
committerGravatar GitHub <noreply@github.com> 2025-12-03 23:41:06 +0100
commit3c4a46e6ba23f310065334e08ecdf73360c330cd (patch)
tree06e29391cf0bf1054f9b6171d3ac416379cb5e35 /app/Controllers
parent26bb2aa975de30fbc9d7146128533637ac0fb26a (diff)
Fix CLI user creation warning when language is not given (#8283)
Discovered during https://github.com/FreshRSS/FreshRSS/pull/8277
Diffstat (limited to 'app/Controllers')
-rw-r--r--app/Controllers/userController.php2
1 files changed, 1 insertions, 1 deletions
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;
}