mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
Strict pagination check (#32548)
This commit is contained in:
@@ -139,7 +139,7 @@ func (opts *FindTrackedTimesOptions) toSession(e db.Engine) db.Engine {
|
||||
|
||||
sess = sess.Where(opts.ToConds())
|
||||
|
||||
if opts.Page != 0 {
|
||||
if opts.Page > 0 {
|
||||
sess = db.SetSessionPagination(sess, opts)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user