🧹 code cleanup

This commit is contained in:
Marc Michalsky forumZFD 2021-04-12 11:26:29 +02:00
parent 9b45d4a1fa
commit 2f1e5721c1
Signed by untrusted user who does not match committer: marc.koch
GPG key ID: 12406554CFB028B9
7 changed files with 18 additions and 36 deletions

View file

@ -127,7 +127,7 @@ function civicrm_api3_twingle_project_Get(array $params): array {
$query = ['options' => ['limit' => 0]];
foreach ($params as $key => $value) {
if ( $key != 'id' &&
if ($key != 'id' &&
array_key_exists('twingle_project_' . $key, $custom_field_mapping)
) {
$query[$custom_field_mapping['twingle_project_' . $key]] = $value;