Skip to content
Snippets Groups Projects
Commit ec7bb86b authored by Lukas Reschke's avatar Lukas Reschke
Browse files

Fixes a problem with the user creation ("User already existed" even if the...

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.
parent f955e5e9
Branches
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment