installation bug avec une langue qui n'existe pas dans la distribution

This commit is contained in:
Fred Tempez 2023-07-23 21:57:19 +02:00
parent 09a8d2c626
commit a6b9e55a34
1 changed files with 2 additions and 1 deletions

View File

@ -430,7 +430,8 @@ class install extends common
$default = init::$defaultData['language'];
foreach ($installedUI as $key => $value) {
if ($default[$key]['version'] > $value['version']) {
if ( is_array($value) &&
$default[$key]['version'] > $value['version']) {
copy('core/module/install/ressource/i18n/' . $key . '.json', self::I18N_DIR . $key . '.json');
$this->setData(['language', $key, $default[$key]]);
}