holyandrew (holyandrew) wrote in changelog,
holyandrew
holyandrew
changelog

[ljcom] r12011: LJSUP-12256: Doesn't work /shop/history....

Committer: akanashin
LJSUP-12256: Doesn't work /shop/history.bml
U   trunk/cgi-bin/LJ/Widget/Shop/History.pm
Modified: trunk/cgi-bin/LJ/Widget/Shop/History.pm
===================================================================
--- trunk/cgi-bin/LJ/Widget/Shop/History.pm	2012-05-25 10:52:10 UTC (rev 12010)
+++ trunk/cgi-bin/LJ/Widget/Shop/History.pm	2012-05-25 12:02:04 UTC (rev 12011)
@@ -243,7 +243,7 @@
         unless ($token_xfer) {
             my $method_code = $logitem->cart->get_method;
             my $method_class = LJ::Pay::Method->class_by_code($method_code);
-            $method_name = $method_class->name_generic;
+            $method_name = $method_class ? $method_class->name_generic : '';
         }
 
         my $result = $result_map{$logitem->status};

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