Use isModEnabled
This commit is contained in:
parent
a283ab61c2
commit
e9dccee7c2
@ -71,7 +71,7 @@ if ($action == 'add_payment' || ($action == 'confirm_paiement' && $confirm == 'y
|
||||
$error++;
|
||||
$action = 'create';
|
||||
}
|
||||
if (!empty($conf->banque->enabled) && !(GETPOST("accountid") > 0)) {
|
||||
if (isModEnabled('banque') && !(GETPOST("accountid") > 0)) {
|
||||
setEventMessages($langs->trans("ErrorFieldRequired", $langs->transnoentities("AccountToCredit")), null, 'errors');
|
||||
$error++;
|
||||
$action = 'create';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user