From ae89c7f198062acb451db93d97a727b720ad086d Mon Sep 17 00:00:00 2001 From: Sebastian Grewe Date: Thu, 21 Nov 2013 09:36:44 +0100 Subject: [PATCH] [FIX] Backport from #855 --- public/include/classes/user.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/include/classes/user.class.php b/public/include/classes/user.class.php index 63ff3889..e68ae854 100644 --- a/public/include/classes/user.class.php +++ b/public/include/classes/user.class.php @@ -438,7 +438,7 @@ class User extends Base { **/ public function register($username, $password1, $password2, $pin, $email1='', $email2='', $strToken='') { $this->debug->append("STA " . __METHOD__, 4); - if (strlen($username > 40)) { + if (strlen($username) > 40) { $this->setErrorMessage('Username exceeding character limit'); return false; }