diff options
Diffstat (limited to 'application')
-rw-r--r-- | application/controllers/user.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/application/controllers/user.php b/application/controllers/user.php index 5d506f9d7..f0426943b 100644 --- a/application/controllers/user.php +++ b/application/controllers/user.php @@ -624,7 +624,7 @@ class User extends MY_Controller { */ private function valid_username($username) { - return !$username || strlen($username) > 32 || !preg_match("/^[a-z0-9]+$/", $username); + return strlen($username) <= 32 && preg_match("/^[a-z0-9]+$/", $username); } /** |