Update interface_99_modStripe_Stripe.class.php

This commit is contained in:
Laurent Destailleur 2018-03-13 14:19:26 +01:00 committed by GitHub
parent d6e8872af4
commit 4b7f4d29d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -122,7 +122,9 @@ $langs->load('other');
/** Users */
$ok=0;
$stripe=new Stripe($db);
if (! empty($conf->stripe->enabled) && (empty($conf->global->STRIPE_LIVE) || empty($conf->global->STRIPECONNECT_LIVE) || GETPOST('forcesandbox','alpha')))
if (empty($conf->stripe->enabled)) return 0;
if (empty($conf->global->STRIPE_LIVE) || GETPOST('forcesandbox','alpha')))
{
$service = 'StripeTest';
}