aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib')
-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)