Merge pull request #168 from gpenverne/fix-for-167

FIX - cast int pages to string
This commit is contained in:
Nicola Asuni 2020-02-12 10:47:30 +00:00 committed by GitHub
commit febd7bc5b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;