Committer: sbelyaev
LJSUP-11477: Problem with delayed scriptU 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;