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

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

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

U   trunk/cgi-bin/LJ/Pay/Payment/PayItem/RenameAction.pm
U   trunk/cgi-bin/LJ/Pay/Payment/PayItem.pm
Modified: trunk/cgi-bin/LJ/Pay/Payment/PayItem/RenameAction.pm
===================================================================
--- trunk/cgi-bin/LJ/Pay/Payment/PayItem/RenameAction.pm	2012-09-11 07:39:06 UTC (rev 12633)
+++ trunk/cgi-bin/LJ/Pay/Payment/PayItem/RenameAction.pm	2012-09-11 08:22:36 UTC (rev 12634)
@@ -157,7 +157,7 @@
 
             ##### DEBUG INFO #####
             my $system = LJ::load_user ('system');
-            LJ::send_mail({ 'to' => 'gproschaev@sup.com,vsukhanov@sup.com',
+            LJ::send_mail({ 'to' => 'gproschaev@sup.com',
                             'from' => $LJ::BOGUS_EMAIL,
                             'wrap' => 1,
                             'charset' => 'utf-8',

Modified: trunk/cgi-bin/LJ/Pay/Payment/PayItem.pm
===================================================================
--- trunk/cgi-bin/LJ/Pay/Payment/PayItem.pm	2012-09-11 07:39:06 UTC (rev 12633)
+++ trunk/cgi-bin/LJ/Pay/Payment/PayItem.pm	2012-09-11 08:22:36 UTC (rev 12634)
@@ -645,8 +645,10 @@
     my $rcpt_u;
     if ($self->get_rcptid) {
         $rcpt_u = LJ::load_userid($self->get_rcptid, "force");
-        warn "Unable to load userid $self->get_rcptid for payid $self->get_payid" unless $rcpt_u;
-        $email = $rcpt_u->email_raw;
+        unless ($rcpt_u) {
+            warn "Unable to load userid $self->get_rcptid for payid $self->get_payid";
+            $email = $rcpt_u->email_raw;
+        }
     }
 
     # call virtual method

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