diff --git a/Civi/StripeImport/Charge.php b/Civi/StripeImport/Charge.php index 49f103acc799b17783276fc322e9441954c4108d..7d017c0f884e7465def28898f89786d69f0ed71d 100644 --- a/Civi/StripeImport/Charge.php +++ b/Civi/StripeImport/Charge.php @@ -94,11 +94,11 @@ class Charge extends Base { if (empty($this->getDescription())) { if (isset($stripeInvoice) && !empty(\CRM_Stripe_Api::getObjectParam('description', $stripeInvoice))) { - $this->setDescription(\CRM_Stripe_Api::getObjectParam('description', $stripeInvoice)); + $this->setDescription(\CRM_Stripe_Api::getObjectParam('description', $stripeInvoice) ?? ''); } } if (empty($this->getDescription())) { - $this->setDescription(\CRM_Stripe_Api::getObjectParam('description', $stripeCharge)); + $this->setDescription(\CRM_Stripe_Api::getObjectParam('description', $stripeCharge) ?? ''); } if (empty($this->getDescription())) { $this->setDescription('Stripe: Manual import via API');