diff options
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]); } /** |