}
<% end %>
-<% if results.result_offset != nil and results.result_limit != nil and results.items_available != nil %>
+<% if results.respond_to? :result_offset and
+ results.respond_to? :result_limit and
+ results.respond_to? :items_available and
+ results.result_offset != nil and
+ results.result_limit != nil and
+ results.items_available != nil
+%>
<div class="index-paging">
Displaying <%= results.result_offset+1 %> –
<%= if results.result_offset + results.result_limit > results.items_available