mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 00:32:29 -04:00
fix remove cache when delete
This commit is contained in:
parent
f827761e71
commit
ea6f8ba352
1 changed files with 3 additions and 6 deletions
|
|
@ -93,14 +93,11 @@ class OC_User_Database extends OC_User_Backend {
|
|||
$query = OC_DB::prepare('DELETE FROM `*PREFIX*users` WHERE `uid` = ?');
|
||||
$result = $query->execute(array($uid));
|
||||
|
||||
if ($result) {
|
||||
if (isset($this->cache[$uid])) {
|
||||
unset($this->cache[$uid]);
|
||||
}
|
||||
return true;
|
||||
if (isset($this->cache[$uid])) {
|
||||
unset($this->cache[$uid]);
|
||||
}
|
||||
|
||||
return false;
|
||||
return $result ? true : false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue