cgi-bin/DW/Controller/RPC/CutExpander.pm
changeset 4239 555a213bdacc
parent 3553 bafea8052e02
     1.1 --- a/cgi-bin/DW/Controller/RPC/CutExpander.pm	Thu May 12 18:02:17 2011 +0800
     1.2 +++ b/cgi-bin/DW/Controller/RPC/CutExpander.pm	Fri Jan 27 13:51:52 2012 +0800
     1.3 @@ -45,7 +45,7 @@
     1.4          # all parameters are included; get the entry.
     1.5          my $ditemid = $args->{ditemid};
     1.6          my $uid = LJ::get_userid( $args->{journal} );
     1.7 -        my $entry = LJ::Entry->new( $uid, ditemid => $ditemid ) if $uid;
     1.8 +        my $entry = $uid ? LJ::Entry->new( $uid, ditemid => $ditemid ) : undef;
     1.9  
    1.10          # FIXME: This returns 200 due to old library, Make return proper when we are jQuery only.
    1.11          return $error_out->( 200, BML::ml( "error.nopermission" ) ) unless $entry;