aboutsummaryrefslogtreecommitdiffstats
path: root/lib/user.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/user.php')
-rw-r--r--lib/user.php8
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/user.php b/lib/user.php
index 2b4e367ab70..f1903093d6d 100644
--- a/lib/user.php
+++ b/lib/user.php
@@ -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;
}
/**