sunnyman's (sunnyman) wrote in changelog,
sunnyman's
sunnyman
changelog

[ljcom] r11479: LJSUP-11205: Stability improved (missed ...

Committer: vtroitsky
LJSUP-11205: Stability improved (missed commit)
U   trunk/cgi-bin/LJ/Pay/SelfPromo.pm
Modified: trunk/cgi-bin/LJ/Pay/SelfPromo.pm
===================================================================
--- trunk/cgi-bin/LJ/Pay/SelfPromo.pm	2012-02-15 14:17:12 UTC (rev 11478)
+++ trunk/cgi-bin/LJ/Pay/SelfPromo.pm	2012-02-15 14:36:54 UTC (rev 11479)
@@ -1219,7 +1219,7 @@
 =cut
 sub is_promoting {
     my ($self, $object) = @_;
-    return ($self->type eq 'entry' ? $self->journalid == $object->journalid && $self->jitemid == $object->jitemid : LJ::u_equals($object, $self->object));
+    return $self->type eq 'entry' ? $object && $object->isa('LJ::Entry') && $self->journalid == $object->journalid && $self->jitemid == $object->jitemid : $object && $object->{'userid'} == $self->journalid;
 }
 
 

Tags: ljcom, pm, sunnyman, vtroitsky
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