ssafronova (ssafronova) wrote in changelog,
ssafronova
ssafronova
changelog

[ljcom] r9746: LJSUP-7425: Error when try to send Paid ...

Committer: ssafronova
LJSUP-7425: Error when try to send Paid account (LJSUP-7267: Give more 2010)
U   trunk/cgi-bin/LJ/Pay/Payment/PayItem/PaidAccount.pm
Modified: trunk/cgi-bin/LJ/Pay/Payment/PayItem/PaidAccount.pm
===================================================================
--- trunk/cgi-bin/LJ/Pay/Payment/PayItem/PaidAccount.pm	2010-11-23 02:28:30 UTC (rev 9745)
+++ trunk/cgi-bin/LJ/Pay/Payment/PayItem/PaidAccount.pm	2010-11-23 04:54:31 UTC (rev 9746)
@@ -669,7 +669,7 @@
 
     # promo action 'Give more 2010' (LJSUP-7267)
     my $now = time;
-    if ($self->{'qty'} == 12 and $rcpt_u->userid != $buyer_u->userid and 
+    if ($self->{'qty'} == 12 and (not $buyer_u or $rcpt_u->userid != $buyer_u->userid) and 
         LJ::Pay::Wallet->is_user_eligible($rcpt_u) and
         $now >= $LJ::PAID_ACCOUNT_PROMO_TOKENS_START and $now < $LJ::PAID_ACCOUNT_PROMO_TOKENS_END) {
 

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