We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce97ee5 commit dce7413Copy full SHA for dce7413
barcode.php
@@ -14,7 +14,7 @@
14
15
require_once 'vendor/autoload.php';
16
17
-define("_BC_VERSION", "1.0.7");
+define("_BC_VERSION", "1.0.8");
18
19
# default padding for cli messages
20
define("_BC_PADDING", 30);
@@ -340,8 +340,8 @@ function vPrint($input) {
340
$bc_type = constant('Picqer\Barcode\BarcodeGenerator::TYPE_'.$encoding);
341
342
// add trailling zero if odd digits on Code128C
343
-$bc_string = strlen($bc_string) % 2 == 0 && $encoding === 'CODE_128_C'?
344
- $bc_string : '0'.$bc_string;
+$bc_string = strlen($bc_string) % 2 != 0 && $encoding === 'CODE_128_C'?
+ '0'.$bc_string : $bc_string;
345
346
// create appropriate generator
347
$generator = null;
0 commit comments