mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 09:42:09 -04:00
fix(appconfig): fix type if known while using deprecated method
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
This commit is contained in:
parent
40fd76f69e
commit
a1772adfcc
1 changed files with 8 additions and 0 deletions
|
|
@ -732,6 +732,14 @@ class AppConfig implements IAppConfig {
|
|||
}
|
||||
|
||||
if ($this->hasKey($app, $key, $lazy)) {
|
||||
// if current set is using deprecated method (using MIXED) but config is typed in db, we fix the type.
|
||||
if ($this->isTyped(self::VALUE_MIXED, $type)) {
|
||||
$type = $this->getValueType($app, $key, $lazy);
|
||||
if ($sensitive) {
|
||||
$type = $type | self::VALUE_SENSITIVE;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* no update if key is already known with set lazy status and value is
|
||||
* not different, unless sensitivity is switched from false to true.
|
||||
|
|
|
|||
Loading…
Reference in a new issue