From 61e97681b66437a6491d30992108a341304e04cb Mon Sep 17 00:00:00 2001 From: fredtempez Date: Fri, 8 Apr 2022 11:35:37 +0200 Subject: [PATCH] =?UTF-8?q?R=C3=A9g=C3=A9nration=20d'une=20BDD=20nulle?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/core.php b/core/core.php index ca013a77..45d821ff 100644 --- a/core/core.php +++ b/core/core.php @@ -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 ; }