Update pdf.lib.php

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

View File

@ -1252,7 +1252,7 @@ function pdf_pagefoot(&$pdf, $outputlangs, $paramfreetext, $fromcompany, $marge_
$pdf->SetY(-$posy);
// Option for hide all footer (page number will no hidden)
if (getDolGlobalInt('PDF_FOOTER_HIDDEN') !== 1) {
if (!getDolGlobalInt('PDF_FOOTER_HIDDEN')) {
// Hide footer line if footer background color is set
if (!getDolGlobalString('PDF_FOOTER_BACKGROUND_COLOR')) {
$pdf->line($dims['lm'], $dims['hk'] - $posy, $dims['wk'] - $dims['rm'], $dims['hk'] - $posy);