madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[livejournal] r22006: LJSUP-12148: JSON-RPC

Committer: sbelyaev
LJSUP-12148: JSON-RPC
U   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;
         }

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