From 7a83c9fd29e1b65f01e3843845049c40db9b25d8 Mon Sep 17 00:00:00 2001 From: OpenXE <> Date: Sun, 26 Mar 2023 13:26:49 +0200 Subject: [PATCH] Bugfix briefpapier freitexte width --- www/lib/dokumente/class.briefpapier.php | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/www/lib/dokumente/class.briefpapier.php b/www/lib/dokumente/class.briefpapier.php index 464fe186..3b10cc26 100644 --- a/www/lib/dokumente/class.briefpapier.php +++ b/www/lib/dokumente/class.briefpapier.php @@ -1797,12 +1797,19 @@ class Briefpapier extends SuperFPDF { public function setStyleData($styleData){ $this->styleData = $styleData; - } + } private function getStyleElement($key){ - if(isset($this->styleData[$key]) && !empty($this->styleData[$key])) return $this->styleData[$key]; - - return $this->app->erp->Firmendaten($key); + $result = null; + if(isset($this->styleData[$key]) && !empty($this->styleData[$key])) { + $result = $this->styleData[$key]; + } else { + $result = $this->app->erp->Firmendaten($key); + } + if (empty($result)) { + $result = 0; + } + return($result); } public function renderDocument() {