code cleanup

This commit is contained in:
Marc Michalsky forumZFD 2021-02-10 18:08:48 +01:00
parent a99e25c40a
commit 34bf53b51b
Signed by untrusted user who does not match committer: marc.koch
GPG key ID: 12406554CFB028B9
4 changed files with 10 additions and 6 deletions

View file

@ -49,7 +49,12 @@ function civicrm_api3_twingle_form_Create(array $params): array {
$result = civicrm_api3('TwingleProject', 'create', $params);
if ($result['is_error'] != 1) {
return civicrm_api3_create_success($result,$params,'TwingleForm', 'create',);
return civicrm_api3_create_success(
$result['values'],
$params,
'TwingleForm',
'create',
);
}
else {
return civicrm_api3_create_error(