revert performance improvements in userExists() because it breaks new user creation

remotes/origin/stable5
Bjoern Schiessle 2012-07-09 10:31:50 +07:00
parent 32b476d6ec
commit 82a57f0ce3
1 changed files with 2 additions and 6 deletions

@ -345,17 +345,13 @@ 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;
}
foreach(self::$_usedBackends as $backend){
$result=$backend->userExists($uid);
if($result===true){
return $user_exists_checked = true;
return true;
}
}
return $user_exists_checked = false;
return false;
}
/**