diff --git a/app/views/memos/show.html.erb b/app/views/memos/show.html.erb index 5e2c83790..af02df499 100644 --- a/app/views/memos/show.html.erb +++ b/app/views/memos/show.html.erb @@ -45,7 +45,7 @@

<%= l(:label_reply_plural) %> (<%= @replies.nil? ? 0 : @replies.size %>)

- <% pages_count = (params['page'].to_i - 1) * 10 %> + <% pages_count = (params['page'].to_i - 1) < 0 ? 0 : ((params['page'].to_i - 1) * 10) %> <% @replies.each do |reply| %>
">

<%= pages_count += 1 %>楼 :