summaryrefslogtreecommitdiffstats
path: root/etc/inc/voucher.inc
diff options
context:
space:
mode:
Diffstat (limited to 'etc/inc/voucher.inc')
-rw-r--r--etc/inc/voucher.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/voucher.inc b/etc/inc/voucher.inc
index 2db6d19..b348fc1 100644
--- a/etc/inc/voucher.inc
+++ b/etc/inc/voucher.inc
@@ -323,7 +323,7 @@ function voucher_used_count($roll) {
for ($i = 1; $i <= $max; $i++) {
// check if ticket already used or not.
$pos = $i >> 3; // divide by 8 -> octet
- $mask = 1 << (($i % 8)-1); // mask to test bit in octet
+ $mask = 1 << ($i % 8); // mask to test bit in octet
if (ord($bitstring[$pos]) & $mask)
$used++;
}
OpenPOWER on IntegriCloud