Merge pull request #8893 from nextcloud/8693_12
[stable12] Fix undefined index problem
This commit is contained in:
commit
969d36f698
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue