👾 bug fix: wrong result array depth for TwingleProjects

This commit is contained in:
Marc Michalsky forumZFD 2021-03-18 17:05:37 +01:00
parent c482366282
commit bf72903880
Signed by untrusted user who does not match committer: marc.koch
GPG key ID: 12406554CFB028B9

View file

@ -298,7 +298,7 @@ function _updateProjectLocally(array $project_from_twingle,
}
// ... else, update local TwingleProject campaign
$project->create(TRUE);
$response[] = $project->getResponse('TwingleProject updated successfully');
$response = $project->getResponse('TwingleProject updated successfully');
return civicrm_api3_create_success(
$response,
$params,
@ -370,7 +370,7 @@ function _pushProjectToTwingle(TwingleProject $project,
);
// Create updated campaign
$project->create(TRUE);
$response[] = $project->getResponse('TwingleProject pushed to Twingle');
$response = $project->getResponse('TwingleProject pushed to Twingle');
return civicrm_api3_create_success(
$response,
$params,