Clean code with rector

This commit is contained in:
ldestailleur
2025-09-18 16:26:38 +02:00
parent 02ec4cf421
commit 4a363478ae
61 changed files with 114 additions and 116 deletions

View File

@@ -194,7 +194,7 @@ class DolibarrApiAccess implements iAuthenticate
$mysoc = $fmysoc;
// Reload langs
$langcode = (empty($conf->global->MAIN_LANG_DEFAULT) ? 'auto' : $conf->global->MAIN_LANG_DEFAULT);
$langcode = (!getDolGlobalString('MAIN_LANG_DEFAULT') ? 'auto' : $conf->global->MAIN_LANG_DEFAULT);
if (!empty($user->conf->MAIN_LANG_DEFAULT)) {
$langcode = $user->conf->MAIN_LANG_DEFAULT;
}