Skip to content
This repository was archived by the owner on Sep 4, 2024. It is now read-only.

Commit 8354bc2

Browse files
authored
fix php 7.4 compat issue
1 parent a6ad588 commit 8354bc2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fpdi_pdf_parser.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ protected function _getPageRotation($obj)
309309
}
310310

311311
$res = $this->_getPageRotation($obj[1][1]['/Parent']);
312-
if ($res[0] == pdf_parser::TYPE_OBJECT)
312+
if (isset($res[0]) && $res[0] == pdf_parser::TYPE_OBJECT)
313313
return $res[1];
314314

315315
return $res;
@@ -352,4 +352,4 @@ protected function _readPages(&$pages, &$result)
352352
}
353353
}
354354
}
355-
}
355+
}

0 commit comments

Comments
 (0)