mirror of
https://github.com/go-gitea/gitea.git
synced 2025-05-30 19:55:37 +02:00
Fix
This commit is contained in:
parent
67779681e0
commit
dcb013cb7a
@ -591,12 +591,12 @@ func SearchRepositoryByCondition(ctx context.Context, opts SearchRepoOptions, co
|
||||
}
|
||||
|
||||
func searchRepositoryByCondition(ctx context.Context, opts SearchRepoOptions, cond builder.Cond) (db.Engine, int64, error) {
|
||||
var page int = opts.Page
|
||||
var page = opts.Page
|
||||
if page <= 0 {
|
||||
page = 1
|
||||
}
|
||||
|
||||
var orderBy db.SearchOrderBy = opts.OrderBy
|
||||
var orderBy = opts.OrderBy
|
||||
if len(orderBy) == 0 {
|
||||
orderBy = db.SearchOrderByAlphabetically
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user