Skip to content

Commit

Permalink
Bugfix: Check if search.next_page is available
Browse files Browse the repository at this point in the history
  • Loading branch information
peterhellberg committed Aug 31, 2010
1 parent 2cc9371 commit b9f7b43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion views/index.haml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
%p=product.easy_to_read_description
- if product.has_duration?
%strong.duration= product.humanized_duration
- if search.next_page > current_page && search.num_found > 0
- if search.next_page && search.next_page > current_page && search.num_found > 0
%div.next_page
%a{ :href => next_page_link(search.next_page) }
="Nästa sida →"
Expand Down

0 comments on commit b9f7b43

Please sign in to comment.