Committer: vtroitsky
LJSUP-12426: Implement API to get history data for scrollerU trunk/cgi-bin/LJ/Pay/SelfPromo.pm
Modified: trunk/cgi-bin/LJ/Pay/SelfPromo.pm =================================================================== --- trunk/cgi-bin/LJ/Pay/SelfPromo.pm 2012-06-05 10:15:43 UTC (rev 12063) +++ trunk/cgi-bin/LJ/Pay/SelfPromo.pm 2012-06-05 12:23:26 UTC (rev 12064) @@ -734,7 +734,7 @@ my $count = $args{'count'}; # count of elements $count ||= -5; # default value of counts - $count = 0 if ($index == 0 && $count > 0); + $count = 0 if ($index == 0 && $count > 1); $count = $index * (-1) + 1 if ($index + $count > 0); #warn "index: $index, count: $count";