Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Commit

Permalink
Pulled in current master into this branch
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz committed Dec 3, 2012
2 parents 28d72f0 + a6b0c4e commit 48c143c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Object/Ean5.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public function getChecksum($text)
$this->checkText($text);
$checksum = 0;

for ($i = 0 ; $i < $this->barcodeLength; $i ++) {
for ($i = 0; $i < $this->barcodeLength; $i ++) {
$checksum += intval($text{$i}) * ($i % 2 ? 9 : 3);
}

Expand Down

0 comments on commit 48c143c

Please sign in to comment.