1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-15 23:17:19 +00:00
This commit is contained in:
Unknwon
2014-12-18 03:26:09 -05:00
parent 57b3be4016
commit c4820f119d
2 changed files with 4 additions and 1 deletions

View File

@@ -418,7 +418,7 @@ func ChangeUserName(u *User, newUserName string) (err error) {
// UpdateUser updates user's information.
func UpdateUser(u *User) error {
has, err := x.Where("id != ?", u.Id).And("email = ?", u.Email).Get(new(User))
has, err := x.Where("id!=?", u.Id).And("email=?", u.Email).Get(new(User))
if err != nil {
return err
} else if has {