]> source.dussan.org Git - nextcloud-server.git/commitdiff
remove some unneeded isset's
authorRobin Appelman <icewind@owncloud.com>
Tue, 18 Feb 2014 13:27:55 +0000 (14:27 +0100)
committerRobin Appelman <icewind@owncloud.com>
Tue, 18 Feb 2014 13:27:55 +0000 (14:27 +0100)
lib/private/preferences.php

index d5b36b1f22931c41142376b970fcda7e087b2d92..7ebbf7aa970cd18679adbd77f90abc50dcb82174 100644 (file)
@@ -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]);
        }
 
        /**