From 2f30bf86726bf6ff5176ecea1e5fefd977a9c0e8 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 9 May 2024 14:54:24 +0200 Subject: [PATCH] FIX PHP warning --- htdocs/includes/tecnickcom/tcpdf/tcpdf.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/htdocs/includes/tecnickcom/tcpdf/tcpdf.php b/htdocs/includes/tecnickcom/tcpdf/tcpdf.php index 067da52db37..ba507b12f4c 100644 --- a/htdocs/includes/tecnickcom/tcpdf/tcpdf.php +++ b/htdocs/includes/tecnickcom/tcpdf/tcpdf.php @@ -10031,6 +10031,11 @@ class TCPDF $out .= ' >> >>'; } $font = $this->getFontBuffer('helvetica'); + // @DOLCHANGE LDR Fix PHP warning + if (empty($font['i'])) { + //var_dump($this->fonts['helvetica']['i']);exit; + $font['i'] = ''; + } $out .= ' /DA (/F'.$font['i'].' 0 Tf 0 g)'; $out .= ' /Q '.(($this->rtl)?'2':'0'); //$out .= ' /XFA ';