diff options
Diffstat (limited to 'models/issues/stopwatch.go')
-rw-r--r-- | models/issues/stopwatch.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/issues/stopwatch.go b/models/issues/stopwatch.go index fd9c7d7875..629af95b57 100644 --- a/models/issues/stopwatch.go +++ b/models/issues/stopwatch.go @@ -96,7 +96,7 @@ func GetUIDsAndStopwatch(ctx context.Context) ([]*UserStopwatch, error) { func GetUserStopwatches(ctx context.Context, userID int64, listOptions db.ListOptions) ([]*Stopwatch, error) { sws := make([]*Stopwatch, 0, 8) sess := db.GetEngine(ctx).Where("stopwatch.user_id = ?", userID) - if listOptions.Page != 0 { + if listOptions.Page > 0 { sess = db.SetSessionPagination(sess, &listOptions) } |