Fix undefined index problem
Nextcloud 13RC4, error in logfile, triggered by "occ config:list": Invalid argument supplied for foreach() at lib/private/AppConfig.php#297 PHP Undefined index: workflowengine at lib/private/AppConfig.php#297 Fix: Check if index exists in array before using it.
This commit is contained in:
parent
ca162e71d7
commit
e1762998b3
|
@ -293,11 +293,13 @@ class AppConfig implements IAppConfig {
|
|||
public function getFilteredValues($app) {
|
||||
$values = $this->getValues($app, false);
|
||||
|
||||
if (array_key_exists($app, $this->sensitiveValues)) {
|
||||
foreach ($this->sensitiveValues[$app] as $sensitiveKey) {
|
||||
if (isset($values[$sensitiveKey])) {
|
||||
$values[$sensitiveKey] = IConfig::SENSITIVE_VALUE;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return $values;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue