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.

remotes/origin/stable5
Lukas Reschke 2012-07-07 15:00:02 +07:00
parent f955e5e9b2
commit ec7bb86b28
1 changed files with 2 additions and 3 deletions

@ -345,9 +345,8 @@ class OC_User {
* @return boolean * @return boolean
*/ */
public static function userExists($uid){ public static function userExists($uid){
static $user_exists_checked = null; if (!is_null($user_exists_checked)) {
if (!is_null($user_exists_checked)) { return $user_exists_checked;
return $user_exists_checked;
} }
foreach(self::$_usedBackends as $backend){ foreach(self::$_usedBackends as $backend){
$result=$backend->userExists($uid); $result=$backend->userExists($uid);