mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-14 12:26:55 +01:00
* [DEV] Improved installer by using AJAX
* [DEV] Bugfixes
This commit is contained in:
@@ -73,7 +73,7 @@ class Config
|
||||
{
|
||||
$Config = Session::getConfig();
|
||||
|
||||
return (gettype($Config) === 'object') ? $Config : self::arrayMapper();
|
||||
return is_object($Config) ? $Config : self::arrayMapper();
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -125,6 +125,10 @@ class Config
|
||||
|
||||
self::$Config = new ConfigData();
|
||||
|
||||
if (!file_exists(XML_CONFIG_FILE)){
|
||||
return self::$Config;
|
||||
}
|
||||
|
||||
try {
|
||||
$items = DiFactory::getConfigStorage()->load('config')->getItems();
|
||||
$Reflection = new ReflectionObject(self::$Config);
|
||||
|
||||
Reference in New Issue
Block a user