From 5315817467cbe8335414f35d2238fc179919dd58 Mon Sep 17 00:00:00 2001 From: OpenXE <> Date: Fri, 23 Feb 2024 17:25:11 +0100 Subject: [PATCH] Angebot totals optional only when not empty --- www/lib/dokumente/class.briefpapier.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/lib/dokumente/class.briefpapier.php b/www/lib/dokumente/class.briefpapier.php index 519337e2..7c72455a 100644 --- a/www/lib/dokumente/class.briefpapier.php +++ b/www/lib/dokumente/class.briefpapier.php @@ -4339,7 +4339,7 @@ class Briefpapier extends SuperFPDF { $this->Line($differenz_wegen_abstand+5, $this->GetY()+1, 210-$this->getStyleElement('abstand_seitenrandrechts'),$this->GetY()+1); } - if(isset($this->totals['optional'])) { + if(!empty($this->totals['optional'])) { $this->SetFont($this->GetFont(),'',$this->getStyleElement('schriftgroesse_gesamt')); $this->Ln(2); $this->Cell_typed($differenz_wegen_abstand,1,'',0);