Use isModEnabled
This commit is contained in:
parent
ef3b8b3b31
commit
38882a6324
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user