also clear cached users when removing a single backend

This commit is contained in:
Robin Appelman 2013-06-03 14:19:17 +02:00
parent 2a82964830
commit 0ce2b2708c
1 changed files with 1 additions and 0 deletions

View File

@ -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]);
}