Skip to content

Commit

Permalink
Fix display of empty expiry date, issue iATSPayments#342
Browse files Browse the repository at this point in the history
  • Loading branch information
adixon committed Mar 18, 2021
1 parent 73bd7ec commit 6aef38a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iats.php
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ function iats_civicrm_pageRun_CRM_Contribute_Page_ContributionRecur($page) {
'reset=1&cid=' . $recur['contact_id'] . '&customerCode=' . $customer_code . '&paymentProcessorId=' . $recur['payment_processor_id'] . '&crid=' . $crid . '&is_test=' . $recur['is_test']);
$extra['customerLink'] .= " | <a href='$processLink'>Process</a>";
$expiry = $payment_token['expiry_date'];
$extra['expiry'] = date('Y-m', strtotime($expiry));
$extra['expiry'] = empty($expiry) ? 'N/A' : date('Y-m', strtotime($expiry));
}
}
catch (CiviCRM_API3_Exception $e) {
Expand Down

0 comments on commit 6aef38a

Please sign in to comment.