diff options
author | eliott <eliott@cactuswax.net> | 2008-04-29 04:47:06 +0200 |
---|---|---|
committer | eliott <eliott@cactuswax.net> | 2008-04-29 04:47:06 +0200 |
commit | 041064473a54c5010dd102e4892cef0f47ecfdbd (patch) | |
tree | 73fb0ba76f12d57b54a66a0b4ba307674314fe5d | |
parent | 360e876fdef546448fedc5dfcb9b63c1cb3d25dc (diff) | |
download | archweb-041064473a54c5010dd102e4892cef0f47ecfdbd.tar.gz archweb-041064473a54c5010dd102e4892cef0f47ecfdbd.tar.xz |
Fix for FS#9999
-rw-r--r-- | packages/views.py | 2 |
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: |