From 988b6a49d26d5926aed7a8cef048686a9501a345 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 13 Jul 2018 18:40:54 +0200 Subject: [PATCH] Fix warning php 7.3 --- dev/dolibarr_changes.txt | 17 +++++++++++++++++ htdocs/includes/tecnickcom/tcpdf/tcpdf.php | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/dev/dolibarr_changes.txt b/dev/dolibarr_changes.txt index cdbc2e2bb4027..6303eaafaaec7 100644 --- a/dev/dolibarr_changes.txt +++ b/dev/dolibarr_changes.txt @@ -48,6 +48,23 @@ into // initialize subsetchars $subsetchars = array_fill(0, 256, true); +* Replace the continue into switch with a break: + +case 're': { + // justify block + if (!TCPDF_STATIC::empty_string($this->lispacer)) { + $this->lispacer = ''; + continue; + } + +into +case 're': { + // justify block + if (!TCPDF_STATIC::empty_string($this->lispacer)) { + $this->lispacer = ''; + break; + } + * Optionnaly, removed all fonts except dejavusans* (used by greek, arab, persan, romanian, turkish), freemono* (russian), diff --git a/htdocs/includes/tecnickcom/tcpdf/tcpdf.php b/htdocs/includes/tecnickcom/tcpdf/tcpdf.php index ef411a17dee3a..3cdfff4f227ef 100644 --- a/htdocs/includes/tecnickcom/tcpdf/tcpdf.php +++ b/htdocs/includes/tecnickcom/tcpdf/tcpdf.php @@ -17783,7 +17783,7 @@ public function writeHTML($html, $ln=true, $fill=false, $reseth=false, $cell=fal // justify block if (!TCPDF_STATIC::empty_string($this->lispacer)) { $this->lispacer = ''; - continue; + break; } preg_match('/([0-9\.\+\-]*)[\s]([0-9\.\+\-]*)[\s]([0-9\.\+\-]*)[\s]('.$strpiece[1][0].')[\s](re)([\s]*)/x', $pmid, $xmatches); if (!isset($xmatches[1])) {