diff --git a/htdocs/cron/card.php b/htdocs/cron/card.php
index 7730f6aafe4..42a0e881512 100644
--- a/htdocs/cron/card.php
+++ b/htdocs/cron/card.php
@@ -710,7 +710,9 @@ else
print '
| ';
print $langs->trans('CronLastResult')." | ";
+ if ($object->lastresult) print '';
print $object->lastresult;
+ if ($object->lastresult) print '';
print " |
";
print '| ';
diff --git a/htdocs/societe/paymentmodes.php b/htdocs/societe/paymentmodes.php
index 8b11ab9573b..9b9ac758fa7 100644
--- a/htdocs/societe/paymentmodes.php
+++ b/htdocs/societe/paymentmodes.php
@@ -758,7 +758,7 @@ if ($socid && $action != 'edit' && $action != 'create' && $action != 'editcard'
print ' | ';
//print $stripecu;
print $form->editfieldval("StripeCustomerId", 'key_account', $stripecu, $object, $permissiontowrite, 'string', '', null, null, '', 2, '', 'socid');
- if ($stripecu)
+ if ($stripecu && $action != 'editkey_account')
{
$url='https://dashboard.stripe.com/test/customers/'.$stripecu;
if ($servicestatus)
|