From 82f1349185b2528ddc42c1a1e3568ae9d23b375f Mon Sep 17 00:00:00 2001 From: karl Date: Mon, 1 Aug 2022 13:12:20 +0000 Subject: - commit invoice_pdf.phtml git-svn-id: https://[internal]/wordpress/plugins/wpsg4@8056 0d5edaf7-2b12-4e95-93f4-047927463d4b --- views/mods/mod_rechnungen/invoice_pdf.phtml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/views/mods/mod_rechnungen/invoice_pdf.phtml b/views/mods/mod_rechnungen/invoice_pdf.phtml index 3e1c416..0b6d5fd 100644 --- a/views/mods/mod_rechnungen/invoice_pdf.phtml +++ b/views/mods/mod_rechnungen/invoice_pdf.phtml @@ -196,8 +196,10 @@ $pdf->Cell(10, 8, __("Nr.", "wpsg"), 1, 0, 'C'); $pdf->setXY($prod_left + 10, $prod_top); - $pdf->Cell( ((sizeof($this->view['basket']['mwst']) >= 1 || $this->get_option('wpsg_showMwstAlways') == '1')?87:102), 8, "Name", 1, 0, 'L'); - + if(is_array($this->view['basket']['mwst'])) { + $pdf->Cell( ((sizeof($this->view['basket']['mwst']) >= 1 || $this->get_option('wpsg_showMwstAlways') == '1')?87:102), 8, "Name", 1, 0, 'L'); + } + if (sizeof($this->view['basket']['mwst']) >= 1 || $this->get_option('wpsg_showMwstAlways') == '1') { -- cgit v1.2.3