mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-08-30 14:26:04 +02:00
#1577 fix missing SQL query placeholder
This commit is contained in:
parent
0ad5f51059
commit
59745c62b4
1 changed files with 5 additions and 2 deletions
|
@ -957,10 +957,13 @@ func countRepositories(showPrivate bool) int64 {
|
|||
sess := x.NewSession()
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue