fix: Check for $creditor_id always fails

This commit is contained in:
Marc Michalsky 2024-06-12 10:51:01 +02:00
parent 4432060d05
commit cd008d9545
Signed by untrusted user who does not match committer: marc.koch
GPG key ID: 12406554CFB028B9

View file

@ -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()])
);