Merge pull request #23699 from grandoc/new_branch_26_01_2023

fix :  Warning: Trying to access array offset on value of type bool i…
This commit is contained in:
Laurent Destailleur 2023-01-29 20:52:54 +01:00 committed by GitHub
commit 223d1cd04a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1373,7 +1373,7 @@ class tcpdi_parser {
return false;
} else {
$res = $this->_getPageRotation($obj[1][1]['/Parent']);
if ($res[0] == PDF_TYPE_OBJECT)
if ($res && $res[0] == PDF_TYPE_OBJECT)
return $res[1];
return $res;
}