From: Robin Appelman Date: Mon, 3 Jun 2013 12:19:17 +0000 (+0200) Subject: also clear cached users when removing a single backend X-Git-Tag: v6.0.0alpha2~688^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=0ce2b2708c7d587e51fdf0bdb5b852863d2b0424;p=nextcloud-server.git also clear cached users when removing a single backend --- diff --git a/lib/user/manager.php b/lib/user/manager.php index 07ebed83971..d17cdf1a200 100644 --- a/lib/user/manager.php +++ b/lib/user/manager.php @@ -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]); }