summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoreliott <eliott@cactuswax.net>2008-04-29 04:47:06 +0200
committereliott <eliott@cactuswax.net>2008-04-29 04:47:06 +0200
commit041064473a54c5010dd102e4892cef0f47ecfdbd (patch)
tree73fb0ba76f12d57b54a66a0b4ba307674314fe5d
parent360e876fdef546448fedc5dfcb9b63c1cb3d25dc (diff)
downloadarchweb-041064473a54c5010dd102e4892cef0f47ecfdbd.tar.gz
archweb-041064473a54c5010dd102e4892cef0f47ecfdbd.tar.xz
Fix for FS#9999
-rw-r--r--packages/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/views.py b/packages/views.py
index 2b8f8b2..df0359d 100644
--- a/packages/views.py
+++ b/packages/views.py
@@ -115,7 +115,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: