mirror of
https://github.com/danog/TelegramApiServer.git
synced 2024-11-26 20:04:45 +01:00
Fix: memory db settings
This commit is contained in:
parent
5063f60b89
commit
3c6c843fe6
@ -167,8 +167,13 @@ class Client
|
||||
'redis' => new Settings\Database\Redis(),
|
||||
};
|
||||
$settingsObject->setDb($type);
|
||||
self::getSettingsFromArray($value[$value['type']], $type);
|
||||
unset($value['type'], $value['mysql'], $value['memory'], $value['postgres'], $value['redis']);
|
||||
if ($value['type'] === 'memory') {
|
||||
self::getSettingsFromArray([], $type);
|
||||
} else {
|
||||
self::getSettingsFromArray($value[$value['type']], $type);
|
||||
}
|
||||
|
||||
unset($value[$value['type']], $value['type'],);
|
||||
if (count($value) === 0) {
|
||||
continue;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user