diff options
| author | 2025-12-03 23:41:06 +0100 | |
|---|---|---|
| committer | 2025-12-03 23:41:06 +0100 | |
| commit | 3c4a46e6ba23f310065334e08ecdf73360c330cd (patch) | |
| tree | 06e29391cf0bf1054f9b6171d3ac416379cb5e35 | |
| parent | 26bb2aa975de30fbc9d7146128533637ac0fb26a (diff) | |
Fix CLI user creation warning when language is not given (#8283)
Discovered during https://github.com/FreshRSS/FreshRSS/pull/8277
| -rw-r--r-- | app/Controllers/userController.php | 2 |
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; } |
