remove unnecessary 'request' array
This commit is contained in:
parent
aadb4246f5
commit
23d11fcfd2
1 changed files with 1 additions and 6 deletions
|
@ -69,14 +69,9 @@ function civicrm_api3_twingle_form_Get(array $params): array {
|
||||||
|
|
||||||
$params['campaign_type_id'] = "twingle_project";
|
$params['campaign_type_id'] = "twingle_project";
|
||||||
$params['is_active'] = 1;
|
$params['is_active'] = 1;
|
||||||
$request = [];
|
|
||||||
|
|
||||||
foreach($params as $key => $param) {
|
|
||||||
$request[$key] = $param;
|
|
||||||
}
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$result = civicrm_api3('Campaign', 'get', $request);
|
$result = civicrm_api3('Campaign', 'get', $params);
|
||||||
|
|
||||||
if ($result['is_error'] == 0) {
|
if ($result['is_error'] == 0) {
|
||||||
foreach($result['values'] as $value) {
|
foreach($result['values'] as $value) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue