mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-05 08:28:45 +02:00
N°3075 - Fix syntax error with PHP 5.6 and TCPDF 6.3.4
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user