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++;
|
$error++;
|
||||||
$action = 'create';
|
$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');
|
setEventMessages($langs->trans("ErrorFieldRequired", $langs->transnoentities("AccountToCredit")), null, 'errors');
|
||||||
$error++;
|
$error++;
|
||||||
$action = 'create';
|
$action = 'create';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user