vadvs (vadvs) wrote in changelog,
vadvs
vadvs
changelog

[livejournal] r17147: Fixed 'Can't call method "correct_anum" ...

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());

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