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 13 years ago
parent f955e5e9b2
commit ec7bb86b28
  1. 5
      lib/user.php

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

Loading…
Cancel
Save