[FIX] Backport from #855

This commit is contained in:
Sebastian Grewe 2013-11-21 09:36:44 +01:00
parent 70432eaf66
commit ae89c7f198

View File

@ -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;
}