Skip to content
Snippets Groups Projects
Commit c9cdd98c authored by mattwire's avatar mattwire
Browse files

Fix description

parent d73d5739
No related branches found
No related tags found
No related merge requests found
......@@ -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');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment