summaryrefslogtreecommitdiffstats
path: root/models/user_openid.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/user_openid.go')
-rw-r--r--models/user_openid.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/user_openid.go b/models/user_openid.go
index 5255b32500..49edc1db21 100644
--- a/models/user_openid.go
+++ b/models/user_openid.go
@@ -93,7 +93,7 @@ func DeleteUserOpenID(openid *UserOpenID) (err error) {
// ToggleUserOpenIDVisibility toggles visibility of an openid address of given user.
func ToggleUserOpenIDVisibility(id int64) (err error) {
- _, err = x.Exec("update user_open_id set show = not show where id = ?", id)
+ _, err = x.Exec("update `user_open_id` set `show` = not `show` where `id` = ?", id)
return err
}