Committer: sbelyaev
LJSUP-13387: Fix error in ControlStripU 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); }