Régénration d'une BDD nulle

This commit is contained in:
fredtempez 2022-04-08 11:35:37 +02:00
parent b60c4d4ba8
commit 61e97681b6
1 changed files with 3 additions and 1 deletions

View File

@ -300,7 +300,9 @@ class common {
// La langue d'installation par défaut est fr
foreach ($this->dataFiles as $stageId => $item) {
$folder = $this->dataPath ($stageId, self::$i18n);
if (file_exists($folder . $stageId .'.json') === false) {
if ( file_exists($folder . $stageId .'.json') === false ||
$this->getData([$stageId]) === NULL
) {
$this->initData($stageId, self::$i18n);
common::$coreNotices [] = $stageId ;
}