madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[livejournal] r21321: LJSUP-11477: Problem with delayed script...

Committer: sbelyaev
LJSUP-11477: Problem with delayed script
U   trunk/cgi-bin/ljprotocol.pl
Modified: trunk/cgi-bin/ljprotocol.pl
===================================================================
--- trunk/cgi-bin/ljprotocol.pl	2012-03-07 12:36:25 UTC (rev 21320)
+++ trunk/cgi-bin/ljprotocol.pl	2012-03-07 13:06:46 UTC (rev 21321)
@@ -2364,7 +2364,10 @@
                 $res->{'type'}      = 'delayed';
             } else {
                 $res->{'itemid'} = $parts[1];
-                $res->{'anum'} = $parts[2];            
+                $res->{'anum'} = $parts[2];
+                if (!$res->{'anum'}) {
+                    return;
+                }            
 
                 my $dup_entry = LJ::Entry->new($uowner, jitemid => $res->{'itemid'}, anum => $res->{'anum'});
                 $res->{'url'} = $dup_entry->url;

Tags: livejournal, madeon, pl, sbelyaev
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