Avoid empty basepath when loading database structure

This commit is contained in:
Michael 2021-04-19 19:42:57 +00:00
parent c5b7af5e81
commit 4f5d2e7d36

View file

@ -192,6 +192,9 @@ class DBStructure
public static function definition($basePath, $with_addons_structure = true) public static function definition($basePath, $with_addons_structure = true)
{ {
if (!self::$definition) { if (!self::$definition) {
if (empty($basePath)) {
$basePath = DI::app()->getBasePath();
}
$filename = $basePath . '/static/dbstructure.config.php'; $filename = $basePath . '/static/dbstructure.config.php';