remove some unneeded isset's
This commit is contained in:
parent
2e97a4cd32
commit
ac2e3ab373
|
@ -221,7 +221,7 @@ class Preferences {
|
||||||
);
|
);
|
||||||
$this->conn->delete('*PREFIX*preferences', $where);
|
$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]);
|
unset($this->cache[$user][$app][$key]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -240,7 +240,7 @@ class Preferences {
|
||||||
);
|
);
|
||||||
$this->conn->delete('*PREFIX*preferences', $where);
|
$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]);
|
unset($this->cache[$user][$app]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -257,10 +257,8 @@ class Preferences {
|
||||||
);
|
);
|
||||||
$this->conn->delete('*PREFIX*preferences', $where);
|
$this->conn->delete('*PREFIX*preferences', $where);
|
||||||
|
|
||||||
if (isset($this->cache[$user])) {
|
|
||||||
unset($this->cache[$user]);
|
unset($this->cache[$user]);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Remove app from all users
|
* @brief Remove app from all users
|
||||||
|
|
Loading…
Reference in New Issue