summaryrefslogtreecommitdiffstats
path: root/models/user_mail.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/user_mail.go')
-rw-r--r--models/user_mail.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/user_mail.go b/models/user_mail.go
index 9dc3d624b4..c6ade3fa43 100644
--- a/models/user_mail.go
+++ b/models/user_mail.go
@@ -172,7 +172,7 @@ func MakeEmailPrimary(email *EmailAddress) error {
if err != nil {
return err
} else if !has {
- return ErrUserNotExist{email.UID, ""}
+ return ErrUserNotExist{email.UID, "", 0}
}
// Make sure the former primary email doesn't disappear.