From 3fb6de8afa96a6fb49d6e444cc25cb31c7ba98ab Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Thu, 5 Feb 2015 18:52:25 +0100 Subject: [PATCH] Fix two syntax err in vroom.pl --- vroom.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vroom.pl b/vroom.pl index fde084d..a513ea2 100755 --- a/vroom.pl +++ b/vroom.pl @@ -1742,7 +1742,7 @@ any '/api' => sub { # Promote a participant to be owner of a room elsif ($req->{action} eq 'promote_peer'){ my $peer_id = $req->{param}->{peer_id}; - if (!$peer){ + if (!$peer_id){ return $self->render( json => { status => 'error', @@ -1763,7 +1763,7 @@ any '/api' => sub { return $self->render( json => { status => 'error', - msg => $self->l('ERROR_OCCURRED') + msg => $self->l('ERROR_OCCURRED'), err => 'ERROR_OCCURRED' }, status => 503