Skip to content

Commit

Permalink
fix: Check for $creditor_id always fails
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcMichalsky committed Jun 12, 2024
1 parent 4432060 commit cd008d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/v3/TwingleDonation/Submit.php
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,7 @@ function civicrm_api3_twingle_donation_Submit($params) {
}

$creditor_id = $profile->getAttribute('sepa_creditor_id');
if (!is_int($creditor_id)) {
if (!isset($creditor_id) || '' === $creditor_id) {
throw new BaseException(
E::ts('SEPA creditor is not configured for profile "%1".', [1 => $profile->getName()])
);
Expand Down

0 comments on commit cd008d9

Please sign in to comment.