madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[livejournal] r22725: LJSUP-13387: Fix error in ControlStrip

Committer: sbelyaev
LJSUP-13387: Fix error in ControlStrip
U   trunk/cgi-bin/LJ/ControlStrip.pm
Modified: trunk/cgi-bin/LJ/ControlStrip.pm
===================================================================
--- trunk/cgi-bin/LJ/ControlStrip.pm	2012-08-23 09:01:00 UTC (rev 22724)
+++ trunk/cgi-bin/LJ/ControlStrip.pm	2012-08-23 09:45:58 UTC (rev 22725)
@@ -363,8 +363,8 @@
         pop @early_date;
         pop @last_date;
 
-        if (@last_date[1] != 0) {
-            @last_date[1] -= 1;
+        if ($last_date[1] != 0) {
+            $last_date[1] -= 1;
         }
 
         if (@early_date[1] != 0) {
@@ -373,9 +373,9 @@
 
         my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) =
             gmtime();
-        if ( @last_date[0] < ($year + 1900) ||
-             @last_date[1] < $mon     ||
-             @last_date[2] < $mday )
+        if ( $last_date[0] < ($year + 1900) ||
+             $last_date[1] < $mon     ||
+             $last_date[2] < $mday )
         {
             @last_date = ($year + 1900, $mon, $mday);
         }

Tags: livejournal, madeon, pm, sbelyaev
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