aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-05-05 08:56:06 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-05-05 08:56:06 +0000
commit646a6820b58a59bf290f9462faafc55fa873d74f (patch)
treef53e227e9eb0edf471f996e01bd76e3d2782eb2f
parent3416b60dd1156094f935d36fa3e50998bdc8fc6b (diff)
downloadelgg-646a6820b58a59bf290f9462faafc55fa873d74f.tar.gz
elgg-646a6820b58a59bf290f9462faafc55fa873d74f.tar.bz2
Closes #1008: Fixed typo
git-svn-id: https://code.elgg.org/elgg/trunk@3257 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r--engine/lib/users.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/engine/lib/users.php b/engine/lib/users.php
index 9c00bb404..ab1482b27 100644
--- a/engine/lib/users.php
+++ b/engine/lib/users.php
@@ -1130,7 +1130,8 @@
$CONFIG->minusername = 4;
}
- if (strlen($CONFIG->minusername)<4) throw new RegistrationException(elgg_echo('registration:usernametooshort'));
+ if (strlen($username) < $CONFIG->minusername)
+ throw new RegistrationException(elgg_echo('registration:usernametooshort'));
// Blacklist for bad characters (partially nicked from mediawiki)