Skip to content

Commit

Permalink
fix issue: count(): Argument myokyawhtun#1 () must be of type Countab…
Browse files Browse the repository at this point in the history
…le|array, bool given
  • Loading branch information
ivgrin committed Dec 8, 2023
1 parent a0e6fca commit b328881
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tcpdf/tcpdi_parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ protected function decodeXrefStream($startxref, $xref=array()) {
$v = $sarr[$key];
if (($key == '/Type') AND ($v[0] == PDF_TYPE_TOKEN AND ($v[1] == 'XRef'))) {
$valid_crs = true;
} elseif (($key == '/Index') AND ($v[0] == PDF_TYPE_ARRAY AND count($v[1] >= 2))) {
} elseif (($key == '/Index') AND ($v[0] == PDF_TYPE_ARRAY AND count($v[1]) >= 2)) {
// first object number in the subsection
$index_first = intval($v[1][0][1]);
// number of entries in the subsection
Expand Down

0 comments on commit b328881

Please sign in to comment.