mirror of
https://github.com/tecnickcom/TCPDF.git
synced 2025-03-24 16:09:40 +01:00
handle integers for pages
This commit is contained in:
parent
9fde7bb9b4
commit
9c75c9c7d2
@ -12382,7 +12382,7 @@ class TCPDF {
|
||||
$x = $this->w;
|
||||
}
|
||||
$fixed = false;
|
||||
if (!empty($page) AND ($page[0] == '*')) {
|
||||
if ((string)$page && (((string)$page)[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