Committer: nnikulochkina
LJSUP-14016: Console comand for journal promoU 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;