From 7bce73f55341ea47099874584a1003271b263118 Mon Sep 17 00:00:00 2001 From: fredtempez Date: Fri, 8 Apr 2022 11:05:59 +0200 Subject: [PATCH] Initialise les BDD vides --- core/core.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/core.php b/core/core.php index 1a5dc92f..42cbf3ec 100644 --- a/core/core.php +++ b/core/core.php @@ -303,7 +303,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 ; }