From 23d11fcfd2257030b4c64c31c0dbd9f28efe3956 Mon Sep 17 00:00:00 2001 From: Marc Michalsky forumZFD Date: Thu, 17 Dec 2020 10:46:50 +0100 Subject: [PATCH] remove unnecessary 'request' array --- api/v3/TwingleForm/Get.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/api/v3/TwingleForm/Get.php b/api/v3/TwingleForm/Get.php index d310095..c24a61a 100644 --- a/api/v3/TwingleForm/Get.php +++ b/api/v3/TwingleForm/Get.php @@ -69,14 +69,9 @@ function civicrm_api3_twingle_form_Get(array $params): array { $params['campaign_type_id'] = "twingle_project"; $params['is_active'] = 1; - $request = []; - - foreach($params as $key => $param) { - $request[$key] = $param; - } try { - $result = civicrm_api3('Campaign', 'get', $request); + $result = civicrm_api3('Campaign', 'get', $params); if ($result['is_error'] == 0) { foreach($result['values'] as $value) {