mirror of
https://github.com/tecnickcom/TCPDF.git
synced 2025-03-21 22:49:39 +01:00
Fixed datamatrix.php for PHP 7.4
Resolved deprecation error: "Deprecated: Array and string offset access syntax with curly braces is deprecated"
This commit is contained in:
parent
9fde7bb9b4
commit
8d20c494fb
@ -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))) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user