Use isModEnabled

This commit is contained in:
Alexandre SPANGARO 2022-08-29 11:25:20 +02:00
parent ef3b8b3b31
commit 38882a6324

View File

@ -628,7 +628,7 @@ class Paiement extends CommonObject
$error = 0;
$bank_line_id = 0;
if (!empty($conf->banque->enabled)) {
if (isModEnabled('banque')) {
if ($accountid <= 0) {
$this->error = 'Bad value for parameter accountid='.$accountid;
dol_syslog(get_class($this).'::addPaymentToBank '.$this->error, LOG_ERR);