Explorar o código

FIX php8 compatibility

Philippe GRAND %!s(int64=2) %!d(string=hai) anos
pai
achega
5bf8b3ceb0
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      htdocs/index.php

+ 2 - 2
htdocs/index.php

@@ -259,12 +259,12 @@ if (empty($conf->global->MAIN_DISABLE_GLOBAL_WORKBOARD)) {
 			$board = new RemiseCheque($db);
 			$dashboardlines[$board->element] = $board->load_board($user);
 		}
-		if (!empty($conf->prelevement->enabled)) {
+		if (isModEnabled('prelevement')) {
 			include_once DOL_DOCUMENT_ROOT.'/compta/prelevement/class/bonprelevement.class.php';
 			$board = new BonPrelevement($db);
 			$dashboardlines[$board->element.'_direct_debit'] = $board->load_board($user, 'direct_debit');
 		}
-		if (!empty($conf->paymentbybanktransfer->enabled)) {
+		if (isModEnabled('paymentbybanktransfer')) {
 			include_once DOL_DOCUMENT_ROOT.'/compta/prelevement/class/bonprelevement.class.php';
 			$board = new BonPrelevement($db);
 			$dashboardlines[$board->element.'_credit_transfer'] = $board->load_board($user, 'credit_transfer');