update code towards php8 compliance

This commit is contained in:
Philippe GRAND 2022-10-10 11:05:09 +02:00
parent 731ff10bed
commit 5a1716f625

View File

@ -872,7 +872,7 @@ class pdf_aurore extends ModelePDFSupplierProposal
// If payment mode not forced or forced to VIR, show payment with BAN
if (empty($object->mode_reglement_code) || $object->mode_reglement_code == 'VIR') {
if (!empty($object->fk_bank) || !empty($conf->global->FACTURE_RIB_NUMBER)) {
if (!empty($object->fk_bank) || getDolGlobalInt('FACTURE_RIB_NUMBER')) {
$bankid = (empty($object->fk_bank) ? $conf->global->FACTURE_RIB_NUMBER : $object->fk_bank);
$account = new Account($this->db);
$account->fetch($bankid);