журнал (shhh) wrote in changelog,
журнал
shhh
changelog

[ljcom] r12839: LJSUP-14016: Console comand for journal ...

Committer: nnikulochkina
LJSUP-14016: Console comand for journal promo
U   trunk/cgi-bin/LJ/Console/Command/SelfPromo.pm
Modified: trunk/cgi-bin/LJ/Console/Command/SelfPromo.pm
===================================================================
--- trunk/cgi-bin/LJ/Console/Command/SelfPromo.pm	2012-10-29 11:37:00 UTC (rev 12838)
+++ trunk/cgi-bin/LJ/Console/Command/SelfPromo.pm	2012-10-29 12:10:16 UTC (rev 12839)
@@ -159,6 +159,7 @@
         foreach my $pc (@promo_classes) {
             next if $pc eq PROMO_JOURNAL();
             my $slot = LJ::Pay::PromotionSlot->find_slot(class => $pc, type => $type, country => $country);
+            next unless $slot;
             $slot->check_current_promotion;
             my $current_promotion = $slot->current_promotion;
 

Tags: ljcom, nikulochkina, nnikulochkina, 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