mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2025-12-23 21:47:44 -05:00
Fix CLI user creation warning when language is not given (#8283)
Discovered during https://github.com/FreshRSS/FreshRSS/pull/8277
This commit is contained in:
committed by
GitHub
parent
26bb2aa975
commit
3c4a46e6ba
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user