summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2018-03-06 19:27:30 +0100
committerGitHub <noreply@github.com>2018-03-06 19:27:30 +0100
commit41f8f68a5a4afb638a1849db2e7a70b9145162f2 (patch)
tree207d88deda629404dd37c3a75e5b720ba0445f60
parenta637e0d686a2e0f358074b76ab6e4396906b2f01 (diff)
parent7e651ffd54350ba24706d220306b1121b8676d0a (diff)
downloadnextcloud-server-41f8f68a5a4afb638a1849db2e7a70b9145162f2.tar.gz
nextcloud-server-41f8f68a5a4afb638a1849db2e7a70b9145162f2.zip
Merge pull request #8693 from nextcloud/13-8173
[stable13] Fix undefined index problem
-rw-r--r--lib/private/AppConfig.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/private/AppConfig.php b/lib/private/AppConfig.php
index 4e102522550..10dc656e5cb 100644
--- a/lib/private/AppConfig.php
+++ b/lib/private/AppConfig.php
@@ -293,9 +293,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;
+ }
}
}