diff options
author | Ermal <eri@pfsense.org> | 2011-03-08 15:23:51 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2011-03-08 15:23:51 +0000 |
commit | 13927322394cd9d17318bad6bd377729a3ebe745 (patch) | |
tree | 1db61bf1b5ebb1deb3b1332aff596aa2037cc11b /etc/inc/voucher.inc | |
parent | c4ea369140ee6d250996cf98a0566a7f8d0a3355 (diff) | |
download | pfsense-13927322394cd9d17318bad6bd377729a3ebe745.zip pfsense-13927322394cd9d17318bad6bd377729a3ebe745.tar.gz |
Do a proper test otherwise a override of the total_minutes var might happen.
Diffstat (limited to 'etc/inc/voucher.inc')
-rw-r--r-- | etc/inc/voucher.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/voucher.inc b/etc/inc/voucher.inc index 40be5a7..3b34e93 100644 --- a/etc/inc/voucher.inc +++ b/etc/inc/voucher.inc @@ -104,7 +104,7 @@ function voucher_auth($voucher_received, $test = 0) { // XMLRPC Call over to the master Voucher node $a_voucher = &$config['voucher']; - if($a_voucher['vouchersyncdbip']) { + if(!empty($a_voucher['vouchersyncdbip'])) { $syncip = $a_voucher['vouchersyncdbip']; $syncport = $a_voucher['vouchersyncport']; $syncpass = $a_voucher['vouchersyncpass']; @@ -215,7 +215,7 @@ function voucher_auth($voucher_received, $test = 0) { } // If we did a XMLRPC sync earlier check the timeleft - if($a_voucher['vouchersyncdbip']) + if(!empty($a_voucher['vouchersyncdbip'])) if($remote_time_used['timeleft'] < $total_minutes) $total_minutes = $remote_time_used['timeleft']; |