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.

This commit is contained in:
Lukas Reschke 2012-07-07 15:00:02 +02:00
parent f955e5e9b2
commit ec7bb86b28
1 changed files with 2 additions and 3 deletions

View File

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