also clear cached users when removing a single backend

remotes/origin/stable6
Robin Appelman 2013-06-03 14:19:17 +07:00
parent 2a82964830
commit 0ce2b2708c
1 changed files with 1 additions and 0 deletions

@ -57,6 +57,7 @@ class Manager extends PublicEmitter {
* @param \OC_User_Backend $backend
*/
public function removeBackend($backend) {
$this->cachedUsers = array();
if (($i = array_search($backend, $this->backends)) !== false) {
unset($this->backends[$i]);
}