fix cache when remove an user

This commit is contained in:
adrien 2014-03-10 17:27:51 +01:00
parent ba9d8f7c1a
commit 415b1d03bc

View file

@ -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;
}
/**