using isset()

using isset() instead of array_key_exists()
This commit is contained in:
michaelletzgus 2018-02-05 10:50:32 +01:00 committed by GitHub
parent cfa694ea73
commit 05b8eb140c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -288,7 +288,7 @@ class AppConfig implements IAppConfig {
public function getFilteredValues($app) {
$values = $this->getValues($app, false);
if (array_key_exists($app, $this->sensitiveValues)) {
if (isset($this->sensitiveValues[$app])) {
foreach ($this->sensitiveValues[$app] as $sensitiveKey) {
if (isset($values[$sensitiveKey])) {
$values[$sensitiveKey] = IConfig::SENSITIVE_VALUE;