aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib')
-rw-r--r--engine/lib/users.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/engine/lib/users.php b/engine/lib/users.php
index f83babc66..9c00bb404 100644
--- a/engine/lib/users.php
+++ b/engine/lib/users.php
@@ -1122,7 +1122,9 @@
* @throws RegistrationException on invalid
*/
function validate_username($username)
- {
+ {
+ global $CONFIG;
+
// Basic, check length
if (!isset($CONFIG->minusername)) {
$CONFIG->minusername = 4;