Update code for php8 compliance

This commit is contained in:
Philippe GRAND 2022-12-10 16:01:38 +01:00
parent 8b55e3875d
commit 9458914466

View File

@ -246,7 +246,7 @@ class pdf_rouget extends ModelePdfExpedition
$realpath = '';
foreach ($objphoto->liste_photos($dir, 1) as $key => $obj) {
if (empty($conf->global->CAT_HIGH_QUALITY_IMAGES)) {
if (!getDolGlobalInt('CAT_HIGH_QUALITY_IMAGES')) {
// If CAT_HIGH_QUALITY_IMAGES not defined, we use thumb if defined and then original photo
if ($obj['photo_vignette']) {
$filename = $obj['photo_vignette'];