From: Michael Date: Mon, 19 Apr 2021 19:42:57 +0000 (+0000) Subject: Avoid empty basepath when loading database structure X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4f5d2e7d36ca871cc130cbbdbb844b4dc95b8485;p=friendica.git Avoid empty basepath when loading database structure --- 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';