diff --git a/lib/private/AppConfig.php b/lib/private/AppConfig.php index 59a340cb491ada079c0ba17116949c1344f09017..880bf6474692028d0a5f2913300fc2a5a7d832eb 100644 --- a/lib/private/AppConfig.php +++ b/lib/private/AppConfig.php @@ -288,9 +288,11 @@ class AppConfig implements IAppConfig { public function getFilteredValues($app) { $values = $this->getValues($app, false); - foreach ($this->sensitiveValues[$app] as $sensitiveKey) { - if (isset($values[$sensitiveKey])) { - $values[$sensitiveKey] = IConfig::SENSITIVE_VALUE; + if (array_key_exists($app, $this->sensitiveValues)) { + foreach ($this->sensitiveValues[$app] as $sensitiveKey) { + if (isset($values[$sensitiveKey])) { + $values[$sensitiveKey] = IConfig::SENSITIVE_VALUE; + } } }