From 9551dc5ecdb2d965ab44b32ebfcf62fe84a73c69 Mon Sep 17 00:00:00 2001 From: Mario Date: Sun, 17 Dec 2023 16:36:13 +0000 Subject: fix loop as described in issue #1827 --- Zotlabs/Lib/Config.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Zotlabs') diff --git a/Zotlabs/Lib/Config.php b/Zotlabs/Lib/Config.php index 40d5cc246..3d34c8497 100644 --- a/Zotlabs/Lib/Config.php +++ b/Zotlabs/Lib/Config.php @@ -121,6 +121,12 @@ class Config { * @return mixed Return value or false on error or if not set */ public static function Get($family, $key, $default = false) { + + if (App::$install) { + // The DB is not initalized yet + return false; + } + if ((! array_key_exists($family, App::$config)) || (! array_key_exists('config_loaded', App::$config[$family]))) { self::Load($family); } -- cgit v1.2.3