diff options
author | eliott <eliott@cactuswax.net> | 2008-04-28 19:47:06 -0700 |
---|---|---|
committer | eliott <eliott@cactuswax.net> | 2008-04-28 19:47:06 -0700 |
commit | 041064473a54c5010dd102e4892cef0f47ecfdbd (patch) | |
tree | 73fb0ba76f12d57b54a66a0b4ba307674314fe5d /packages/views.py | |
parent | 360e876fdef546448fedc5dfcb9b63c1cb3d25dc (diff) |
Fix for FS#9999
Diffstat (limited to 'packages/views.py')
-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 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: |