Sécurise la réinitialisation des BDD
This commit is contained in:
parent
00a1f57665
commit
a1e1b9dace
@ -330,15 +330,16 @@ class common
|
|||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Installation fraîche, initialisation des modules manquants
|
// Installation fraîche, initialisation des modules
|
||||||
foreach ($this->dataFiles as $stageId => $item) {
|
if ($this->user === []) {
|
||||||
$folder = $this->dataPath($stageId, self::$i18nContent);
|
foreach ($this->dataFiles as $stageId => $item) {
|
||||||
if (
|
$folder = $this->dataPath($stageId, self::$i18nContent);
|
||||||
file_exists($folder . $stageId . '.json') === false ||
|
if (
|
||||||
$this->getData([$stageId]) === NULL
|
file_exists($folder . $stageId . '.json') === false
|
||||||
) {
|
) {
|
||||||
$this->initData($stageId, self::$i18nContent);
|
$this->initData($stageId, self::$i18nContent);
|
||||||
common::$coreNotices[] = $stageId;
|
common::$coreNotices[] = $stageId;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user