mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fix for expiry failure
This commit is contained in:
parent
8e223c83a5
commit
303bfce10f
@ -1302,37 +1302,11 @@ trait GenerateMigrationResources
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
private function convertMeta($payment_method)
|
private function convertMeta($payment_method)
|
||||||
{
|
{
|
||||||
$expiry = explode('-', $payment_method->expiration);
|
$expiry = explode('-', $payment_method->expiration);
|
||||||
|
|
||||||
if (is_array($expiry)) {
|
if (is_array($expiry) && count($expiry) >= 2) {
|
||||||
$exp_month = $expiry[1];
|
$exp_month = $expiry[1];
|
||||||
$exp_year = $expiry[0];
|
$exp_year = $expiry[0];
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user