From 4ffeafa5ac8bbea8a5b5dee34f680a6f389e2cd5 Mon Sep 17 00:00:00 2001 From: OpenXE <> Date: Fri, 5 May 2023 09:58:15 +0200 Subject: [PATCH] bugfix gruppensumme PDF Briefpapier::Cell_typed(): Argument #3 ($txt) must be of type string, null given --- www/lib/dokumente/class.briefpapier.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/www/lib/dokumente/class.briefpapier.php b/www/lib/dokumente/class.briefpapier.php index 3b10cc26..cfa6a08b 100644 --- a/www/lib/dokumente/class.briefpapier.php +++ b/www/lib/dokumente/class.briefpapier.php @@ -4008,7 +4008,7 @@ class Briefpapier extends SuperFPDF { } $beschriftung_zeile = ucfirst($zwischenpositionen[$i]['postype']); - + if($data['name']=="") $html = ($fett?"":"").$beschriftung_zeile.($fett?"":""); else @@ -4029,8 +4029,12 @@ class Briefpapier extends SuperFPDF { $abstand_links = $posWidth +$itemNoWidth; } - $this->SetX($x+$abstand_links); - $this->Cell_typed($descWidth,4,$this->WriteHTML($html)); + $this->SetX($x+$abstand_links); + + $text = $this->WriteHTML($html); + $text = empty($text)?"":$text; + + $this->Cell_typed($descWidth,4,); $this->SetX($x+$abstand_links+$descWidth); //$this->SetX($x);