$installedUI empty

This commit is contained in:
Fred Tempez 2023-02-17 13:55:29 +01:00
parent fb0ce1d36b
commit fb9448cf8e

View File

@ -178,10 +178,11 @@ class translate extends common
// Langues disponibles avec la mise à jour
$store = json_decode(file_get_contents('core\module\install\ressource\i18n\languages.json'), true);
$store = $store['languages'];
foreach($installedUI as $key => $value) {
if ($store[$key]['version'] > $value['version']) {
$this->setData(['languages', $key, $store[$key]]);
if ($installedUI) {
foreach($installedUI as $key => $value) {
if ($store[$key]['version'] > $value['version']) {
$this->setData(['languages', $key, $store[$key]]);
}
}
}