summaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authoreliott <eliott@cactuswax.net>2008-04-29 04:39:03 +0200
committereliott <eliott@cactuswax.net>2008-04-29 04:39:03 +0200
commit74a0b6df8a570b8e3c4a9f912ab8cd9678da741c (patch)
tree26c848a3e649b8d4f9d6dff897471f8d52d7029b /packages
parent405d3e16080aa4460c441c1dbb49366a4a66c4f2 (diff)
downloadarchweb-74a0b6df8a570b8e3c4a9f912ab8cd9678da741c.tar.gz
archweb-74a0b6df8a570b8e3c4a9f912ab8cd9678da741c.tar.xz
Fix for FS#9999
Diffstat (limited to 'packages')
-rw-r--r--packages/views.py2
1 files changed, 1 insertions, 1 deletions
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: