Fix var not defined

This commit is contained in:
Laurent Destailleur 2020-01-21 00:20:18 +01:00
parent 80483fc085
commit d6e81c5da4

View File

@ -422,6 +422,8 @@ class pdf_cyan extends ModelePDFPropales
if ($tmpuser->office_phone) $notetoshow.=', Tel: '.$tmpuser->office_phone; if ($tmpuser->office_phone) $notetoshow.=', Tel: '.$tmpuser->office_phone;
} }
$tab_height = $this->page_hauteur - $tab_top_newpage - $heightforinfotot - $heightforfreetext - $heightforsignature - $heightforfooter;
$pagenb = $pdf->getPage(); $pagenb = $pdf->getPage();
if ($notetoshow) if ($notetoshow)
{ {
@ -533,7 +535,6 @@ class pdf_cyan extends ModelePDFPropales
$posyafter = $tab_top_newpage; $posyafter = $tab_top_newpage;
} }
} }
$tab_height = $tab_height - $height_note; $tab_height = $tab_height - $height_note;
$tab_top = $posyafter + 6; $tab_top = $posyafter + 6;
} }