1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-09 12:42:36 +01:00

Fix for expiry failure

This commit is contained in:
David Bomba 2020-11-01 19:57:44 +11:00
parent 8e223c83a5
commit 303bfce10f

View File

@ -1302,37 +1302,11 @@ trait GenerateMigrationResources
}
private function convertMeta($payment_method)
{
$expiry = explode('-', $payment_method->expiration);
if (is_array($expiry)) {
if (is_array($expiry) && count($expiry) >= 2) {
$exp_month = $expiry[1];
$exp_year = $expiry[0];
} else {