Skip to content

Commit

Permalink
Fix warning php 7.3
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Jul 13, 2018
1 parent 1e775ff commit 988b6a4
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
17 changes: 17 additions & 0 deletions dev/dolibarr_changes.txt
Expand Up @@ -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),
Expand Down
2 changes: 1 addition & 1 deletion htdocs/includes/tecnickcom/tcpdf/tcpdf.php
Expand Up @@ -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])) {
Expand Down

0 comments on commit 988b6a4

Please sign in to comment.