diff --git a/core/core.php b/core/core.php index 1e11fbf..5e23e65 100644 --- a/core/core.php +++ b/core/core.php @@ -675,7 +675,7 @@ class common // Constructeur JsonDB; $this->dataFiles[$module] = new \Prowebcraft\JsonDb([ 'name' => $module . '.json', - 'dir' => self::DATA_DIR . $path . '/', + 'dir' => empty($path) ? self::DATA_DIR : self::DATA_DIR . $path . '/', 'backup' => file_exists('site/data/.backup') ]);