فهرست منبع

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

Discovered during https://github.com/FreshRSS/FreshRSS/pull/8277
Alexandre Alapetite 4 ماه پیش
والد
کامیت
3c4a46e6ba
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      app/Controllers/userController.php

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