From 74a0b6df8a570b8e3c4a9f912ab8cd9678da741c Mon Sep 17 00:00:00 2001 From: eliott Date: Mon, 28 Apr 2008 19:39:03 -0700 Subject: Fix for FS#9999 --- packages/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'packages') diff --git a/packages/views.py b/packages/views.py index 2ac3474..cb6bb81 100644 --- a/packages/views.py +++ b/packages/views.py @@ -113,7 +113,7 @@ def search(request, query=''): qs = request.GET.copy() # build pagination urls - if results.count() > (skip + limit): + if results.count() > (skip + limit) and limit > 0: qs['skip'] = skip + limit c['nextpage'] = '?' + qs.urlencode() if skip > 0: -- cgit v1.2.3-24-g4f1b