wisest owl (wisest_owl) wrote in changelog,
wisest owl
wisest_owl
changelog

[livejournal] r17842: LJSUP-7472. Receive error when I hit the...

Committer: gprochaev
LJSUP-7472. Receive error when I hit the category

U   trunk/cgi-bin/LJ/Widget/Browse.pm
Modified: trunk/cgi-bin/LJ/Widget/Browse.pm
===================================================================
--- trunk/cgi-bin/LJ/Widget/Browse.pm	2010-12-01 11:08:46 UTC (rev 17841)
+++ trunk/cgi-bin/LJ/Widget/Browse.pm	2010-12-01 11:33:49 UTC (rev 17842)
@@ -234,6 +234,7 @@
 
         foreach my $entry (@posts) {
             next unless $entry;
+            next unless $entry->valid;
 
             next unless 1;## This entry is inappropriate language in the subject or body
 
@@ -364,6 +365,7 @@
         $posts = $vertical->load_vertical_posts( count => $vertical->show_entries, is_random => 1 );
         foreach my $post (@$posts) {
             my $entry = LJ::Entry->new ($post->{journalid}, jitemid => $post->{jitemid});
+            next unless $entry->valid;
             my $userpic = $entry->userpic;
             my $poster = $entry->poster;
             push @top_posts, {

Tags: livejournal, pm, wisest-owl
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