Update stripe.class.php

This commit is contained in:
Laurent Destailleur 2019-09-06 23:29:27 +02:00 committed by GitHub
parent 9601f846ce
commit a168c989f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -383,7 +383,7 @@ class Stripe extends CommonObject
{
$metadata['dol_type'] = $object->element;
$metadata['dol_id'] = $object->id;
if (isset($object->thirdparty->id)) $metadata['dol_thirdparty_id'] = $object->thirdparty->id;
if (is_object($object->thirdparty) && $object->thirdparty->id > 0) $metadata['dol_thirdparty_id'] = $object->thirdparty->id;
}
$dataforintent = array(