Skip to content

Commit

Permalink
Dev Revert "Fixed issue: RemoteControl add_participants did not retur…
Browse files Browse the repository at this point in the history
…n anything"

Dev Unnecessary fix
  • Loading branch information
c-schmitz committed Mar 27, 2021
1 parent de62b7f commit ed93599
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions application/helpers/remotecontrol/remotecontrol_handle.php
Original file line number Diff line number Diff line change
Expand Up @@ -1823,13 +1823,13 @@ public function add_participants($sSessionKey, $iSurveyID, $aParticipantData, $b
if ($bCreateToken) {
$token->generateToken();
}
if ($token->encryptSave(true)) {
$return = $token->getAttributes();
if ($token->encryptSave(true)) {
$aParticipant = $token->getAttributes();
} else {
$return["status"] = 'Error: '.$token->errors;
$aParticipant["errors"] = $token->errors;
}
}
return $return;
return $aParticipantData;
} else {
return array('status' => 'No permission');
}
Expand Down

0 comments on commit ed93599

Please sign in to comment.