Skip to content

Commit

Permalink
Don't call method on undefined user in __rpc_general
Browse files Browse the repository at this point in the history
Fixes a warning found in testing when remote wasn't set.
  • Loading branch information
kareila committed Sep 6, 2015
1 parent c2e4b24 commit 9645a5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cgi-bin/DW/Controller/RPC/Misc.pm
Expand Up @@ -228,7 +228,7 @@ sub general_handler {

# make sure we have a user of some sort
my $remote = LJ::get_remote();
my $u = LJ::load_user( $args->{user} || $remote->user )
my $u = LJ::load_user( $args->{user} ) || $remote
or return DW::RPC->alert( 'Unable to load user for call.' );

# in theory, they're passing a mode in the args-> arguments
Expand Down

0 comments on commit 9645a5c

Please sign in to comment.