remove unnecessary reset() for $params[$target]

This commit is contained in:
Marc Michalsky 2024-06-13 13:34:34 +02:00
parent 96d0e5fbec
commit 07435ad997
Signed by untrusted user who does not match committer: marc.koch
GPG key ID: 12406554CFB028B9

View file

@ -821,7 +821,7 @@ function civicrm_api3_twingle_donation_Submit($params) {
Note::create(FALSE)
->addValue('entity_table', 'civicrm_contribution')
->addValue('entity_id', $contribution['id'])
->addValue('note', reset($params[$target]))
->addValue('note', $params[$target])
->execute();
}
}