Skip to content

Commit

Permalink
Fixed issue: RemoteControl add_participants did not return anything
Browse files Browse the repository at this point in the history
Fixed issue: Debug mode not working in RemoteControl
  • Loading branch information
arnaudbore committed Mar 27, 2021
1 parent 9c553e3 commit f69786f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions application/helpers/remotecontrol/remotecontrol_handle.php
Original file line number Diff line number Diff line change
Expand Up @@ -1782,12 +1782,12 @@ public function add_participants($sSessionKey, $iSurveyID, $aParticipantData, $b
$token->generateToken();
}
if ($token->save()) {
$aParticipant = $token->getAttributes();
$return = $token->getAttributes();
} else {
$aParticipant["errors"] = $token->errors;
$return["status"] = 'Error: '.$token->errors;
}
}
return $aParticipantData;
return $return;
} else {
return array('status' => 'No permission');
}
Expand Down
2 changes: 1 addition & 1 deletion application/libraries/jsonRPCClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public function __construct($url, $debug = false, $proxy = null)
{
$this->url = $url;
$this->proxy = $proxy;
$this->debug = ($this->debug === true);
$this->debug = ($debug === true);
// message id
$this->id = 1;
}
Expand Down

0 comments on commit f69786f

Please sign in to comment.