4
0
Эх сурвалжийг харах

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

Discovered during https://github.com/FreshRSS/FreshRSS/pull/8277
Alexandre Alapetite 5 сар өмнө
parent
commit
3c4a46e6ba

+ 1 - 1
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;
 			}