Merge pull request #4241 from turbo124/master

Fix for expiry failure
This commit is contained in:
David Bomba 2020-11-01 19:58:09 +11:00 committed by GitHub
commit 964be94407
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 {