wisest owl (wisest_owl) wrote in changelog,
wisest owl
wisest_owl
changelog

[ljcom] r12645: LJSUP-12558: Minor fixes.

Committer: wisest-owl
LJSUP-12558: Minor fixes.

U   trunk/cgi-bin/LJ/Pay/Payment/PayItem.pm
Modified: trunk/cgi-bin/LJ/Pay/Payment/PayItem.pm
===================================================================
--- trunk/cgi-bin/LJ/Pay/Payment/PayItem.pm	2012-09-13 12:09:29 UTC (rev 12644)
+++ trunk/cgi-bin/LJ/Pay/Payment/PayItem.pm	2012-09-13 12:22:43 UTC (rev 12645)
@@ -645,9 +645,10 @@
     my $rcpt_u;
     if ($self->get_rcptid) {
         $rcpt_u = LJ::load_userid($self->get_rcptid, "force");
-        unless ($rcpt_u) {
+        if ($rcpt_u) {
+            $email = $rcpt_u->email_raw;
+        } else {
             warn "Unable to load userid $self->get_rcptid for payid $self->get_payid";
-            $email = $rcpt_u->email_raw;
         }
     }
 

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