sunnyman's (sunnyman) wrote in changelog,
sunnyman's
sunnyman
changelog

[ljcom] r12064: LJSUP-12426: Implement API to get histor...

Committer: vtroitsky
LJSUP-12426: Implement API to get history data for scroller
U   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";

Tags: ljcom, pm, sunnyman, vtroitsky
Subscribe

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments