Merge pull request #22809 from nextcloud/bugfix/noid/remove-unneeded-isset-check
Remove unneeded isset check
This commit is contained in:
commit
a053aa7221
|
@ -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]);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue