diff options
author | Morris Jobke <hey@morrisjobke.de> | 2018-02-06 10:23:52 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-06 10:23:52 +0100 |
commit | 8fa86bf68b7ecf9923152bcc638c0f17b58c014f (patch) | |
tree | 5cca6c25dcea51796063cc8b56ee079bbae5fde1 | |
parent | 2b848e483b35c8a802c920f737de91dc048d1b55 (diff) | |
parent | 05b8eb140cc1c1fa27520bb5c0762f08e144b6c0 (diff) | |
download | nextcloud-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.php | 8 |
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; + } } } |