Update pdf.lib.php

This commit is contained in:
Laurent Destailleur 2023-03-12 18:38:26 +01:00 committed by GitHub
parent 728c2ef238
commit 283d0ce785
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -731,7 +731,7 @@ function pdf_pagehead(&$pdf, $outputlangs, $page_height)
$pdf->SetAutoPageBreak(1, 0); // Restore pagebreak
}
}
if (!empty($conf->global->MAIN_ADD_PDF_BACKGROUND) && ($conf->global->MAIN_ADD_PDF_BACKGROUND != '-1')) {
if (getDolGlobalString('MAIN_ADD_PDF_BACKGROUND') && getDolGlobalString('MAIN_ADD_PDF_BACKGROUND') != '-1') {
$pdf->SetPageMark(); // This option avoid to have the images missing on some pages
}
}