summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorGeorg Ehrke <ownclouddev@georgswebsite.de>2012-01-02 11:49:53 +0100
committerGeorg Ehrke <ownclouddev@georgswebsite.de>2012-01-02 11:49:53 +0100
commit534b6f3a098c8f2bb5993592e73f5af75c3c86bc (patch)
treec609f4429b17c91b41368bbc0fa669e1a3ffbb76 /lib
parent4374d55e5e020a1f2673a18991be6f2560e9f2c3 (diff)
downloadnextcloud-server-534b6f3a098c8f2bb5993592e73f5af75c3c86bc.tar.gz
nextcloud-server-534b6f3a098c8f2bb5993592e73f5af75c3c86bc.zip
Fix whitespace username
Diffstat (limited to 'lib')
-rw-r--r--lib/user.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/user.php b/lib/user.php
index 241d9aa8b10..0a5881ec0f8 100644
--- a/lib/user.php
+++ b/lib/user.php
@@ -120,7 +120,7 @@ class OC_User {
return false;
}
// No empty username
- if( !$uid ){
+ if(trim($uid) == ''){
return false;
}
// Check if user already exists