From d6e81c5da4bbd46e27d11b5b8b3f1319c9393372 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 21 Jan 2020 00:20:18 +0100 Subject: [PATCH] Fix var not defined --- htdocs/core/modules/propale/doc/pdf_cyan.modules.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/htdocs/core/modules/propale/doc/pdf_cyan.modules.php b/htdocs/core/modules/propale/doc/pdf_cyan.modules.php index 96513b5bba3..4c422dc6128 100644 --- a/htdocs/core/modules/propale/doc/pdf_cyan.modules.php +++ b/htdocs/core/modules/propale/doc/pdf_cyan.modules.php @@ -422,6 +422,8 @@ class pdf_cyan extends ModelePDFPropales if ($tmpuser->office_phone) $notetoshow.=', Tel: '.$tmpuser->office_phone; } + $tab_height = $this->page_hauteur - $tab_top_newpage - $heightforinfotot - $heightforfreetext - $heightforsignature - $heightforfooter; + $pagenb = $pdf->getPage(); if ($notetoshow) { @@ -533,7 +535,6 @@ class pdf_cyan extends ModelePDFPropales $posyafter = $tab_top_newpage; } } - $tab_height = $tab_height - $height_note; $tab_top = $posyafter + 6; } @@ -1481,7 +1482,7 @@ class pdf_cyan extends ModelePDFPropales // Load traductions files required by page $outputlangs->loadLangs(array("main", "propal", "companies", "bills")); - + $default_font_size = pdf_getPDFFontSize($outputlangs); pdf_pagehead($pdf, $outputlangs, $this->page_hauteur);