Skip to content

Commit

Permalink
Changes for PHP 5.6 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolaasuni committed Oct 20, 2023
1 parent 6bce590 commit 0ca30ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Type/Square/Datamatrix/EncodeTxt.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function encodeTXTC40shift(&$chr, &$enc, &$temp_cw, &$ptr)
if (array_key_exists($chr, Data::CHSET['SH1'])) {
$temp_cw[] = 0; // shift 1
$shiftset = Data::CHSET['SH1'];
} elseif (isset($chr, Data::CHSET['SH2'][$chr])) {
} elseif (array_key_exists($chr, Data::CHSET['SH2'])) {
$temp_cw[] = 1; // shift 2
$shiftset = Data::CHSET['SH2'];
} elseif (($enc == Data::ENC_C40) && array_key_exists($chr, Data::CHSET['S3C'])) {
Expand Down

0 comments on commit 0ca30ed

Please sign in to comment.