fix loop as described in issue #1827

This commit is contained in:
Mario
2023-12-17 16:36:13 +00:00
parent 414b2b0e4c
commit 9551dc5ecd

View File

@@ -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);
}