fix cache when remove an user
This commit is contained in:
parent
ba9d8f7c1a
commit
415b1d03bc
1 changed files with 8 additions and 1 deletions
|
@ -93,7 +93,14 @@ class OC_User_Database extends OC_User_Backend {
|
|||
$query = OC_DB::prepare('DELETE FROM `*PREFIX*users` WHERE `uid` = ?');
|
||||
$result = $query->execute(array($uid));
|
||||
|
||||
return $result ? true : false;
|
||||
if ($result) {
|
||||
if (isset(self::$cache[$uid])) {
|
||||
unset(self::$cache[$uid]);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue