Committer: gprochaev
LJSUP-7472. Receive error when I hit the categoryU 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, {