diff --git a/htdocs/societe/paymentmodes.php b/htdocs/societe/paymentmodes.php index 8fa907389c3..30b19e59d8b 100644 --- a/htdocs/societe/paymentmodes.php +++ b/htdocs/societe/paymentmodes.php @@ -1616,8 +1616,6 @@ if ($socid && $action != 'edit' && $action != 'create' && $action != 'editcard' continue; // Already in previous list } - $nbremote++; - $imgline = ''; if ($src->object == 'source' && $src->type == 'sepa_debit') { $imgline = ''; @@ -1627,6 +1625,8 @@ if ($socid && $action != 'edit' && $action != 'create' && $action != 'editcard' continue; } + $nbremote++; + print ''; print ''; print ''; @@ -1715,7 +1715,7 @@ if ($socid && $action != 'edit' && $action != 'create' && $action != 'editcard' if ($nbremote == 0 && $nblocal == 0) { $colspan = 10; - if (!empty($conf->prelevement->enabled)) { + if (isModEnabled('prelevement')) { $colspan += 3; } print ''.$langs->trans("NoBANRecord").'';