slartyblartfast (slartyblartfast) wrote in changelog,
slartyblartfast
slartyblartfast
changelog

[ljcom] r8146: Bugfix: double check variable.

Committer: mchernyshev
Bugfix: double check variable.
U   trunk/cgi-bin/LJ/Pay/ShopVGift.pm
Modified: trunk/cgi-bin/LJ/Pay/ShopVGift.pm
===================================================================
--- trunk/cgi-bin/LJ/Pay/ShopVGift.pm	2010-01-28 08:47:17 UTC (rev 8145)
+++ trunk/cgi-bin/LJ/Pay/ShopVGift.pm	2010-01-28 08:49:41 UTC (rev 8146)
@@ -142,8 +142,8 @@
         my $age = $remote->age();
         if ($age) {
             return 0
-                if ($age && $self->{min_age} && $self->{min_age} > $age)
-                 ||($age && $self->{max_age} && $self->{max_age} < $age);
+                if ($self->{min_age} && $self->{min_age} > $age)
+                 ||($self->{max_age} && $self->{max_age} < $age);
         }
     } else {
         return 0 if $self->{is_hidden_for_not_logged_in};

Tags: ljcom, pm, slartyblartfast
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