From 441adaa74a9d0b5ad8081dc25883976163e72af0 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Fri, 11 Sep 2020 16:20:30 +0200 Subject: [PATCH] Remove unneeded isset check Signed-off-by: Joas Schilling --- lib/private/AllConfig.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/private/AllConfig.php b/lib/private/AllConfig.php index 25c30937e279a..20f4afd0dedf0 100644 --- a/lib/private/AllConfig.php +++ b/lib/private/AllConfig.php @@ -317,7 +317,7 @@ public function setUserValue($userId, $appName, $key, $value, $preCondition = nu */ 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 @@ public function deleteUserValue($userId, $appName, $key) { '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]); } }