aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/private/AppConfig.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/private/AppConfig.php b/lib/private/AppConfig.php
index b1fde7c4965..2a6b5ba483c 100644
--- a/lib/private/AppConfig.php
+++ b/lib/private/AppConfig.php
@@ -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.