mirror of
https://github.com/tecnickcom/TCPDF.git
synced 2025-03-20 22:19:39 +01:00
Fix #176: syntax error on line 12387 (invalid usage of array index)
Fix a syntax error issue when accessing an index of a casted variable
This commit is contained in:
parent
510070b5e0
commit
cea137671f
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user