Update code for php8 compliance
This commit is contained in:
parent
5a824872c2
commit
3bb98a6d4b
@ -280,7 +280,7 @@ class pdf_azur extends ModelePDFPropales
|
|||||||
$dir = $conf->product->dir_output.'/'.$midir; //Check repertory of the current product
|
$dir = $conf->product->dir_output.'/'.$midir; //Check repertory of the current product
|
||||||
}
|
}
|
||||||
foreach ($objphoto->liste_photos($dir, 1) as $key => $obj) {
|
foreach ($objphoto->liste_photos($dir, 1) as $key => $obj) {
|
||||||
if (empty($conf->global->CAT_HIGH_QUALITY_IMAGES)) { // If CAT_HIGH_QUALITY_IMAGES not defined, we use thumb if defined and then original photo
|
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']) {
|
if ($obj['photo_vignette']) {
|
||||||
$filename = $obj['photo_vignette'];
|
$filename = $obj['photo_vignette'];
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user