Committer: afedorov
LJSUP-9318: Error when user try proview entry with lj-likeU 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 : '',