summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2012-07-09 10:31:50 +0200
committerBjoern Schiessle <schiessle@owncloud.com>2012-07-09 10:31:50 +0200
commit82a57f0ce369f6827a0a86a4ef35f62707b014fd (patch)
tree5459af9036982ba931f12a8359041e0641e13c5e /lib
parent32b476d6ec58e6b020667ebe71ab5e2cd380b375 (diff)
downloadnextcloud-server-82a57f0ce369f6827a0a86a4ef35f62707b014fd.tar.gz
nextcloud-server-82a57f0ce369f6827a0a86a4ef35f62707b014fd.zip
revert performance improvements in userExists() because it breaks new user creation
Diffstat (limited to 'lib')
-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;
}
/**