holyandrew (holyandrew) wrote in changelog,
holyandrew
holyandrew
changelog

[livejournal] r21485: LJSUP-11372: Develop regional self promo...

Committer: akanashin
LJSUP-11372: Develop regional self promo for Ukraine
U   trunk/cgi-bin/LJ/Widget/Location.pm
Modified: trunk/cgi-bin/LJ/Widget/Location.pm
===================================================================
--- trunk/cgi-bin/LJ/Widget/Location.pm	2012-03-21 08:51:50 UTC (rev 21484)
+++ trunk/cgi-bin/LJ/Widget/Location.pm	2012-03-21 11:10:53 UTC (rev 21485)
@@ -250,7 +250,7 @@
         for my $type (qw(entry journal community)) {
             my $class = LJ::Pay::SelfPromo->get_class_by_type($type , 'ua');
             my $promo = $class->current_promo_info();
-            if (LJ::u_equals($promo->promoter, $u)) {
+            if ($promo && LJ::u_equals($promo->promoter, $u)) {
                 $class->withdraw_object($promo->object);
             }
         }

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