Skip to content
Browse files

fixed an off by one error in printComments

  • Loading branch information...
1 parent 7344f96 commit a574f3f71612c227cd3e1ec47fdf1d5fe5e60460 Jon 'CowboyNeal' Pater committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 Slash/Slash.pm
View
2 Slash/Slash.pm
@@ -571,7 +571,7 @@ sub printComments {
# Flat and theaded mode don't index, even on large stories, so they
# need to use more, smaller pages. --Pater
- my $total = ($user->{mode} eq 'flat' || $user->{mode} eq 'nested') ? $comments->{0}{totals}[$user->{threshold}] : $cc;
+ my $total = ($user->{mode} eq 'flat' || $user->{mode} eq 'nested') ? $comments->{0}{totals}[$user->{threshold} + 1] : $cc;
my $lcp = linkCommentPages($discussion->{id}, $pid, $cid, $total);
my $comment_html = slashDisplay('printCommComments', {

0 comments on commit a574f3f

Please sign in to comment.
Something went wrong with that request. Please try again.