Fix two syntax err in vroom.pl

master
Daniel Berteaud 10 years ago
parent f78f368f23
commit 3fb6de8afa
  1. 4
      vroom.pl

@ -1742,7 +1742,7 @@ any '/api' => sub {
# Promote a participant to be owner of a room # Promote a participant to be owner of a room
elsif ($req->{action} eq 'promote_peer'){ elsif ($req->{action} eq 'promote_peer'){
my $peer_id = $req->{param}->{peer_id}; my $peer_id = $req->{param}->{peer_id};
if (!$peer){ if (!$peer_id){
return $self->render( return $self->render(
json => { json => {
status => 'error', status => 'error',
@ -1763,7 +1763,7 @@ any '/api' => sub {
return $self->render( return $self->render(
json => { json => {
status => 'error', status => 'error',
msg => $self->l('ERROR_OCCURRED') msg => $self->l('ERROR_OCCURRED'),
err => 'ERROR_OCCURRED' err => 'ERROR_OCCURRED'
}, },
status => 503 status => 503

Loading…
Cancel
Save