Committer: sbelyaev
LJSUP-12148: JSON-RPCU trunk/cgi-bin/LJ/JSON/RPC/Item.pm
Modified: trunk/cgi-bin/LJ/JSON/RPC/Item.pm =================================================================== --- trunk/cgi-bin/LJ/JSON/RPC/Item.pm 2012-05-21 09:22:40 UTC (rev 22005) +++ trunk/cgi-bin/LJ/JSON/RPC/Item.pm 2012-05-21 10:07:39 UTC (rev 22006) @@ -101,7 +101,8 @@ my $remote = LJ::get_remote(); my @params_vars = keys %{$self->{'params'}}; - if ($self->{'access_type'} eq 'auth_token') { + my $access_type = $self->{'access_type'}; + if ($access_type && $access_type eq 'auth_token') { my $auth = LJ::Auth->ajax_auth_token($remote, $self->{'uri'}, \@params_vars); $result->{'auth_token'} = $auth; }