1
0
mirror of https://github.com/tecnickcom/TCPDF.git synced 2025-04-14 11:02:06 +02:00

Merge pull request from mhedderich/master

Fixed datamatrix.php for PHP 7.4
This commit is contained in:
Nicola Asuni 2020-02-12 10:46:56 +00:00 committed by GitHub
commit 822e66063b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -629,7 +629,7 @@ class Datamatrix {
if ($numch[ENC_C40] == $numch[ENC_X12]) {
$k = ($pos + $charscount + 1);
while ($k < $data_length) {
$tmpchr = ord($data{$k});
$tmpchr = ord($data[$k]);
if ($this->isCharMode($tmpchr, ENC_X12)) {
return ENC_X12;
} elseif (!($this->isCharMode($tmpchr, ENC_X12) OR $this->isCharMode($tmpchr, ENC_C40))) {