aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/AllConfig.php
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2020-09-11 16:20:30 +0200
committerJoas Schilling <coding@schilljs.com>2020-09-11 16:20:30 +0200
commit441adaa74a9d0b5ad8081dc25883976163e72af0 (patch)
treeb46296926b05e8d560bf6cac1b9269a6f0864d9b /lib/private/AllConfig.php
parent8ab2d5a8d95288ce6909fc7fb14b419ab15b5a86 (diff)
downloadnextcloud-server-441adaa74a9d0b5ad8081dc25883976163e72af0.tar.gz
nextcloud-server-441adaa74a9d0b5ad8081dc25883976163e72af0.zip
Remove unneeded isset check
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private/AllConfig.php')
-rw-r--r--lib/private/AllConfig.php4
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]);
}
}