mirror of
https://framagit.org/hubzilla/core.git
synced 2026-06-21 00:52:33 -04:00
fix loop as described in issue #1827
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user