diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2012-07-07 15:00:02 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2012-07-07 15:00:02 +0200 |
commit | ec7bb86b2875c9e5afbd7db57de3c872afc3e90b (patch) | |
tree | 4771fd4c0d08a2af4f11a08431cd06f95c3d2fda /lib/user.php | |
parent | f955e5e9b2ed03137f6c5a264a97500be9107bbe (diff) | |
download | nextcloud-server-ec7bb86b2875c9e5afbd7db57de3c872afc3e90b.tar.gz nextcloud-server-ec7bb86b2875c9e5afbd7db57de3c872afc3e90b.zip |
Fixes a problem with the user creation ("User already existed" even if the user don't exists.) Thanks to Phil Reinhardt for pointing this out.
Diffstat (limited to 'lib/user.php')
-rw-r--r-- | lib/user.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/user.php b/lib/user.php index d02c1208a8d..3029ec1acc1 100644 --- a/lib/user.php +++ b/lib/user.php @@ -345,9 +345,8 @@ class OC_User { * @return boolean */ public static function userExists($uid){ - static $user_exists_checked = null;
- if (!is_null($user_exists_checked)) {
- return $user_exists_checked;
+ if (!is_null($user_exists_checked)) { + return $user_exists_checked; } foreach(self::$_usedBackends as $backend){ $result=$backend->userExists($uid); |