Skip to content

Commit

Permalink
Update interface_99_modStripe_Stripe.class.php
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Mar 13, 2018
1 parent d6e8872 commit 4b7f4d2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion htdocs/core/triggers/interface_99_modStripe_Stripe.class.php
Expand Up @@ -122,7 +122,9 @@ public function runTrigger($action, $object, User $user, Translate $langs, Conf
/** 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';
}
Expand Down

0 comments on commit 4b7f4d2

Please sign in to comment.