alf (red_alf) wrote in changelog,
alf
red_alf
changelog

[livejournal] r19490: LJSUP-9318: Error when user try proview ...

Committer: afedorov
LJSUP-9318: Error when user try proview entry with lj-like

U   trunk/cgi-bin/cleanhtml.pl
Modified: trunk/cgi-bin/cleanhtml.pl
===================================================================
--- trunk/cgi-bin/cleanhtml.pl	2011-07-19 02:41:21 UTC (rev 19489)
+++ trunk/cgi-bin/cleanhtml.pl	2011-07-19 03:12:14 UTC (rev 19490)
@@ -827,7 +827,7 @@
 
                     elsif ( $button eq 'livejournal' ) {
                         my $entry = LJ::Entry->new_from_url($entry_url);
-                           $entry = undef unless $entry->valid;
+                           $entry = undef unless $entry && $entry->valid;
 
                         my $give_button = LJ::run_hook("give_button", {
                             'journal' => $entry ? $entry->journal->user : '',

Tags: livejournal, pl, red_alf
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