diff options
author | Joas Schilling <213943+nickvergessen@users.noreply.github.com> | 2020-09-14 08:49:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-14 08:49:46 +0200 |
commit | a053aa722147c77065e836ac94691de6d6375bd8 (patch) | |
tree | 9ea3eae1d90052b3a0675ec9adc2f958a0bb732d /lib | |
parent | 4c0453dc0098913d35228625162f08c9a44ce933 (diff) | |
parent | 441adaa74a9d0b5ad8081dc25883976163e72af0 (diff) | |
download | nextcloud-server-a053aa722147c77065e836ac94691de6d6375bd8.tar.gz nextcloud-server-a053aa722147c77065e836ac94691de6d6375bd8.zip |
Merge pull request #22809 from nextcloud/bugfix/noid/remove-unneeded-isset-check
Remove unneeded isset check
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/AllConfig.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/AllConfig.php b/lib/private/AllConfig.php index 25c30937e27..20f4afd0ded 100644 --- a/lib/private/AllConfig.php +++ b/lib/private/AllConfig.php @@ -317,7 +317,7 @@ class AllConfig implements \OCP\IConfig { */ public function getUserValue($userId, $appName, $key, $default = '') { $data = $this->getUserValues($userId); - if (isset($data[$appName]) and isset($data[$appName][$key])) { + if (isset($data[$appName][$key])) { return $data[$appName][$key]; } else { return $default; @@ -355,7 +355,7 @@ class AllConfig implements \OCP\IConfig { 'WHERE `userid` = ? AND `appid` = ? AND `configkey` = ?'; $this->connection->executeUpdate($sql, [$userId, $appName, $key]); - if (isset($this->userCache[$userId]) and isset($this->userCache[$userId][$appName])) { + if (isset($this->userCache[$userId][$appName])) { unset($this->userCache[$userId][$appName][$key]); } } |