Downcase username only if it is there

This commit is contained in:
Raphael 2010-09-15 18:23:54 -07:00
parent b8f6c0bbd4
commit e9009ea609

View file

@ -311,7 +311,7 @@ class User
end
def downcase_username
username.downcase!
username.downcase! if username
end