From 4f5d2e7d36ca871cc130cbbdbb844b4dc95b8485 Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 19 Apr 2021 19:42:57 +0000 Subject: [PATCH] Avoid empty basepath when loading database structure --- src/Database/DBStructure.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Database/DBStructure.php b/src/Database/DBStructure.php index 0c1a46d4ed..82e405942f 100644 --- a/src/Database/DBStructure.php +++ b/src/Database/DBStructure.php @@ -192,6 +192,9 @@ class DBStructure public static function definition($basePath, $with_addons_structure = true) { if (!self::$definition) { + if (empty($basePath)) { + $basePath = DI::app()->getBasePath(); + } $filename = $basePath . '/static/dbstructure.config.php'; -- 2.20.1