Committer: vsukhanov
Fixed 'Can't call method "correct_anum" on an undefined value' error.U trunk/cgi-bin/LJ/S2/EntryPage.pm
Modified: trunk/cgi-bin/LJ/S2/EntryPage.pm =================================================================== --- trunk/cgi-bin/LJ/S2/EntryPage.pm 2010-08-18 03:56:36 UTC (rev 17146) +++ trunk/cgi-bin/LJ/S2/EntryPage.pm 2010-08-18 07:13:13 UTC (rev 17147) @@ -382,7 +382,7 @@ $entry ||= LJ::Entry->new($u, ditemid => $1); - unless ($entry->correct_anum) { + unless ($entry and $entry->correct_anum) { $opts->{'handler_return'} = 404; LJ::Request->pnotes ('error' => 'e404'); LJ::Request->pnotes ('remote' => LJ::get_remote());