aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2023-12-17 16:36:13 +0000
committerMario <mario@mariovavti.com>2023-12-17 16:36:13 +0000
commit9551dc5ecdb2d965ab44b32ebfcf62fe84a73c69 (patch)
treea368b2144a0c91dcf1753bcaa7fa84e882c2272a
parent414b2b0e4c63b1fcd6c4d9cdb91d766d4dc88bad (diff)
downloadvolse-hubzilla-9551dc5ecdb2d965ab44b32ebfcf62fe84a73c69.tar.gz
volse-hubzilla-9551dc5ecdb2d965ab44b32ebfcf62fe84a73c69.tar.bz2
volse-hubzilla-9551dc5ecdb2d965ab44b32ebfcf62fe84a73c69.zip
fix loop as described in issue #1827
-rw-r--r--Zotlabs/Lib/Config.php6
1 files changed, 6 insertions, 0 deletions
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);
}