mirror of
				https://gitea.com/gitea/tea.git
				synced 2025-10-31 01:05:26 +01:00 
			
		
		
		
	fix #358 Co-authored-by: Brahim Hamdouni <brahim@hamdouni.com> Reviewed-on: https://gitea.com/gitea/tea/pulls/359 Reviewed-by: techknowlogick <techknowlogick@gitea.io> Reviewed-by: Norwin <noerw@noreply.gitea.io> Co-authored-by: Brahim HAMDOUNI <hamdouni@noreply.gitea.io> Co-committed-by: Brahim HAMDOUNI <hamdouni@noreply.gitea.io>
This commit is contained in:
		| @@ -39,6 +39,9 @@ type TeaContext struct { | |||||||
| func (ctx *TeaContext) GetListOptions() gitea.ListOptions { | func (ctx *TeaContext) GetListOptions() gitea.ListOptions { | ||||||
| 	page := ctx.Int("page") | 	page := ctx.Int("page") | ||||||
| 	limit := ctx.Int("limit") | 	limit := ctx.Int("limit") | ||||||
|  | 	if limit < 0 { | ||||||
|  | 		limit = 0 | ||||||
|  | 	} | ||||||
| 	if limit != 0 && page == 0 { | 	if limit != 0 && page == 0 { | ||||||
| 		page = 1 | 		page = 1 | ||||||
| 	} | 	} | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Brahim HAMDOUNI
					Brahim HAMDOUNI