diff --git a/htdocs/stripe/charge.php b/htdocs/stripe/charge.php
index fb122948dd0..e8823119e30 100644
--- a/htdocs/stripe/charge.php
+++ b/htdocs/stripe/charge.php
@@ -150,27 +150,30 @@ if (!$rowid)
print '
';
- if (!empty($stripeacc)) $connect=$stripeacc.'/';
+ if (!empty($stripeacc)) $connect=$stripeacc.'/';
// Ref
$url='https://dashboard.stripe.com/'.$connect.'test/payments/'.$charge->id;
- if ($servicestatus)
- {
- $url='https://dashboard.stripe.com/'.$connect.'payments/'.$charge->id;
- }
- print "| ".img_picto($langs->trans('ShowInStripe'), 'object_globe')." ".$charge->id." | \n";
+ if ($servicestatus)
+ {
+ $url='https://dashboard.stripe.com/'.$connect.'payments/'.$charge->id;
+ }
+ print "";
+ print "".img_picto($langs->trans('ShowInStripe'), 'object_globe')." ".$charge->id."";
+ print " | \n";
// Stripe customer
print "";
-
- if (! empty($conf->stripe->enabled) && !empty($stripeacc)) $connect=$stripeacc.'/';
+ if (! empty($conf->stripe->enabled) && !empty($stripeacc)) $connect=$stripeacc.'/';
$url='https://dashboard.stripe.com/'.$connect.'test/customers/'.$charge->customer;
if ($servicestatus)
{
- $url='https://dashboard.stripe.com/'.$connect.'customers/'.$charge->customer;
+ $url='https://dashboard.stripe.com/'.$connect.'customers/'.$charge->customer;
}
- print ''.img_picto($langs->trans('ShowInStripe'), 'object_globe').' '.$charge->customer.'';
-
- print " | \n";
+ if (! empty($charge->customer))
+ {
+ print ''.img_picto($langs->trans('ShowInStripe'), 'object_globe').' '.$charge->customer.'';
+ }
+ print "\n";
// Link
print "";
if ($societestatic->id > 0)
|