Skip to content

Commit

Permalink
used $cidorpid to calculate totals instead of $cid for times when $ci…
Browse files Browse the repository at this point in the history
…d is undef
  • Loading branch information
Jon 'CowboyNeal' Pater committed Aug 5, 2003
1 parent faa43f3 commit 4ac6236
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Slash/Slash.pm
Expand Up @@ -577,7 +577,7 @@ sub printComments {
# Flat and theaded mode don't index, even on large stories, so they
# need to use more, smaller pages. if $cid is 0, then we get the
# totalviskids for the story --Pater
my $total = ($user->{mode} eq 'flat' || $user->{mode} eq 'nested') ? $comments->{$cid}{totalvisiblekids} : $cc;
my $total = ($user->{mode} eq 'flat' || $user->{mode} eq 'nested') ? $comments->{$cidorpid}{totalvisiblekids} : $cc;

my $lcp = linkCommentPages($discussion->{id}, $pid, $cid, $total);
my $comment_html = slashDisplay('printCommComments', {
Expand Down

0 comments on commit 4ac6236

Please sign in to comment.