0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-11-16 15:01:07 +01:00

#1577 fix missing SQL query placeholder

This commit is contained in:
Unknwon 2016-02-10 17:30:24 -05:00
parent 0ad5f51059
commit 59745c62b4

View file

@ -957,10 +957,13 @@ func countRepositories(showPrivate bool) int64 {
sess := x.NewSession() sess := x.NewSession()
if !showPrivate { if !showPrivate {
sess.Where("is_private=", false) sess.Where("is_private=?", false)
} }
count, _ := sess.Count(new(Repository)) count, err := sess.Count(new(Repository))
if err != nil {
log.Error(4, "countRepositories: %v", err)
}
return count return count
} }