Browse Source

Use isModEnabled

Alexandre SPANGARO 2 years ago
parent
commit
114bb31ac9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      htdocs/salaries/paiement_salary.php

+ 1 - 1
htdocs/salaries/paiement_salary.php

@@ -77,7 +77,7 @@ if ($action == 'add_payment' || ($action == 'confirm_paiement' && $confirm == 'y
 		$error++;
 		$action = 'create';
 	}
-	if (!empty($conf->banque->enabled) && !(GETPOST("accountid", 'int') > 0)) {
+	if (isModEnabled('banque') && !(GETPOST("accountid", 'int') > 0)) {
 		setEventMessages($langs->trans("ErrorFieldRequired", $langs->transnoentities("AccountToDebit")), null, 'errors');
 		$error++;
 		$action = 'create';