]> source.dussan.org Git - nextcloud-server.git/commitdiff
Remove unneeded isset check 22809/head
authorJoas Schilling <coding@schilljs.com>
Fri, 11 Sep 2020 14:20:30 +0000 (16:20 +0200)
committerJoas Schilling <coding@schilljs.com>
Fri, 11 Sep 2020 14:20:30 +0000 (16:20 +0200)
Signed-off-by: Joas Schilling <coding@schilljs.com>
lib/private/AllConfig.php

index 25c30937e279aef9149fe6750a9f3c128612245e..20f4afd0dedf02e41809faa91e8684390274a113 100644 (file)
@@ -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]);
                }
        }