Skip to content

Commit

Permalink
Merge pull request zendframework#105 from FraGoTe/patch-1
Browse files Browse the repository at this point in the history
Update Code128.php
  • Loading branch information
weierophinney committed May 17, 2017
2 parents 95c9386 + 5551b3d commit 1fbb4fd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Barcode/Code128.php
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,10 @@ public function hasValidCharacters($value)
break;
}

$value = $strWrapper->substr($value, 1, null);
if (!empty($value) && strlen($value) > 1) {
$value = $strWrapper->substr($value, 1, null);
}

$read = $set;
}

Expand Down

0 comments on commit 1fbb4fd

Please sign in to comment.