summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2014-02-18 14:27:55 +0100
committerRobin Appelman <icewind@owncloud.com>2014-02-18 14:27:55 +0100
commitac2e3ab373d76b5b1819fa48fb09a3ff9ba43623 (patch)
tree3d033751e0777d151aeb839bc66df0ec4c15d6e2 /lib
parent2e97a4cd327bd0cdc6a6119093a6068f47da105b (diff)
downloadnextcloud-server-ac2e3ab373d76b5b1819fa48fb09a3ff9ba43623.tar.gz
nextcloud-server-ac2e3ab373d76b5b1819fa48fb09a3ff9ba43623.zip
remove some unneeded isset's
Diffstat (limited to 'lib')
-rw-r--r--lib/private/preferences.php8
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]);
}
/**