diff options
author | Robin Appelman <icewind@owncloud.com> | 2014-02-18 17:27:55 +0400 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2014-02-18 17:27:55 +0400 |
commit | ac2e3ab373d76b5b1819fa48fb09a3ff9ba43623 (patch) | |
tree | 3d033751e0777d151aeb839bc66df0ec4c15d6e2 /lib/private/preferences.php | |
parent | 2e97a4cd327bd0cdc6a6119093a6068f47da105b (diff) |
remove some unneeded isset's
Diffstat (limited to 'lib/private/preferences.php')
-rw-r--r-- | lib/private/preferences.php | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/private/preferences.php b/lib/private/preferences.php index d5b36b1f229..7ebbf7aa970 100644 --- a/lib/private/preferences.php +++ b/lib/private/preferences.php @@ -221,7 +221,7 @@ class Preferences { ); $this->conn->delete('*PREFIX*preferences', $where); - if (isset($this->cache[$user]) and isset($this->cache[$user][$app]) and isset($this->cache[$user][$app][$key])) { + if (isset($this->cache[$user]) and isset($this->cache[$user][$app])) { unset($this->cache[$user][$app][$key]); } } @@ -240,7 +240,7 @@ class Preferences { ); $this->conn->delete('*PREFIX*preferences', $where); - if (isset($this->cache[$user]) and isset($this->cache[$user][$app])) { + if (isset($this->cache[$user])) { unset($this->cache[$user][$app]); } } @@ -257,9 +257,7 @@ class Preferences { ); $this->conn->delete('*PREFIX*preferences', $where); - if (isset($this->cache[$user])) { - unset($this->cache[$user]); - } + unset($this->cache[$user]); } /** |