summaryrefslogtreecommitdiff
path: root/packages/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'packages/views.py')
-rw-r--r--packages/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/views.py b/packages/views.py
index 2b8f8b22..df0359d2 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: