summaryrefslogtreecommitdiffstats
path: root/src/etc/inc/voucher.inc
diff options
context:
space:
mode:
Diffstat (limited to 'src/etc/inc/voucher.inc')
-rw-r--r--src/etc/inc/voucher.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/etc/inc/voucher.inc b/src/etc/inc/voucher.inc
index 2e0f5f5..97b2403 100644
--- a/src/etc/inc/voucher.inc
+++ b/src/etc/inc/voucher.inc
@@ -588,8 +588,9 @@ function voucher_configure_zone($sync = false) {
$roll = $rollent['number'];
$len = ($rollent['count'] >> 3) + 1;
- if (strlen(base64_decode($rollent['used'])) != $len)
+ if (strlen(base64_decode($rollent['used'])) != $len) {
$rollent['used'] = base64_encode(str_repeat("\000", $len));
+ }
voucher_write_used_db($roll, $rollent['used']);
$minutes = $rollent['minutes'];
$active_vouchers = array();
OpenPOWER on IntegriCloud