update code toward php 8 compliance

This commit is contained in:
Philippe GRAND 2022-12-17 12:41:20 +01:00
parent b83bc96ac8
commit 7d97fb5e0d

View File

@ -1477,7 +1477,7 @@ class pdf_eratosthene extends ModelePDFCommandes
if (!empty($conf->mycompany->multidir_output[$object->entity])) {
$logodir = $conf->mycompany->multidir_output[$object->entity];
}
if (empty($conf->global->MAIN_PDF_USE_LARGE_LOGO)) {
if (!getDolGlobalInt('MAIN_PDF_USE_LARGE_LOGO')) {
$logo = $logodir.'/logos/thumbs/'.$this->emetteur->logo_small;
} else {
$logo = $logodir.'/logos/'.$this->emetteur->logo;