diff options
-rw-r--r-- | etc/inc/voucher.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/voucher.inc b/etc/inc/voucher.inc index e19e121..a2baae9 100644 --- a/etc/inc/voucher.inc +++ b/etc/inc/voucher.inc @@ -438,7 +438,7 @@ function voucher_auth($voucher_received, $test = 0) { // If we did a XMLRPC sync earlier check the timeleft if (!empty($config['voucher'][$cpzone]['vouchersyncdbip'])) if($remote_time_used < $total_minutes) - $total_minutes = $remote_time_used; + $total_minutes -= $remote_time_used; // All given vouchers were valid and this isn't simply a test. // Write back the used DB's |