Revision f3512fca
Added by Jim Pingle over 11 years ago
etc/inc/voucher.inc | ||
---|---|---|
438 | 438 |
// If we did a XMLRPC sync earlier check the timeleft |
439 | 439 |
if (!empty($config['voucher'][$cpzone]['vouchersyncdbip'])) |
440 | 440 |
if($remote_time_used < $total_minutes) |
441 |
$total_minutes = $remote_time_used; |
|
441 |
$total_minutes -= $remote_time_used;
|
|
442 | 442 |
|
443 | 443 |
// All given vouchers were valid and this isn't simply a test. |
444 | 444 |
// Write back the used DB's |
Also available in: Unified diff
Reduce the total minutes by the remote minutes used, do not use the value directly. Otherwise the voucher will be cut short or listed invalid when it otherwise should have time left over.