summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2018-02-06 10:23:52 +0100
committerGitHub <noreply@github.com>2018-02-06 10:23:52 +0100
commit8fa86bf68b7ecf9923152bcc638c0f17b58c014f (patch)
tree5cca6c25dcea51796063cc8b56ee079bbae5fde1
parent2b848e483b35c8a802c920f737de91dc048d1b55 (diff)
parent05b8eb140cc1c1fa27520bb5c0762f08e144b6c0 (diff)
downloadnextcloud-server-8fa86bf68b7ecf9923152bcc638c0f17b58c014f.tar.gz
nextcloud-server-8fa86bf68b7ecf9923152bcc638c0f17b58c014f.zip
Merge pull request #8173 from michaelletzgus/fix_for_each
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 59a340cb491..6d24ca5fa8e 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 (isset($this->sensitiveValues[$app])) {
+ foreach ($this->sensitiveValues[$app] as $sensitiveKey) {
+ if (isset($values[$sensitiveKey])) {
+ $values[$sensitiveKey] = IConfig::SENSITIVE_VALUE;
+ }
}
}