N°3075 - Fix syntax error with PHP 5.6 and TCPDF 6.3.4

This commit is contained in:
acognet
2020-06-05 17:02:50 +02:00
parent 0b84e809f6
commit 1b7473365d
12 changed files with 37 additions and 35 deletions

View File

@@ -7178,7 +7178,7 @@ class TCPDF {
} else {
$ximg = $x;
}
if ($ismask OR $hidden) {
// image is not displayed
return $info['i'];
@@ -12384,7 +12384,8 @@ class TCPDF {
$x = $this->w;
}
$fixed = false;
if ((string)$page && (((string)$page)[0] == '*')) {
$pageAsString = (string) $page;
if ($pageAsString && $pageAsString[0] == '*') {
$page = intval(substr($page, 1));
// this page number will not be changed when moving/add/deleting pages
$fixed = true;