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

View File

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