remove some unneeded isset's

This commit is contained in:
Robin Appelman 2014-02-18 14:27:55 +01:00
parent 2e97a4cd32
commit ac2e3ab373
1 changed files with 3 additions and 5 deletions

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