From a6b9e55a34f559f469e0a006dc3aca1df75a8f1a Mon Sep 17 00:00:00 2001 From: fredtempez Date: Sun, 23 Jul 2023 21:57:19 +0200 Subject: [PATCH] installation bug avec une langue qui n'existe pas dans la distribution --- core/module/install/install.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/module/install/install.php b/core/module/install/install.php index 129dab9e..cf8a2b48 100644 --- a/core/module/install/install.php +++ b/core/module/install/install.php @@ -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]]); }