diff options
author | Ermal <eri@pfsense.org> | 2011-05-26 19:39:58 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2011-05-26 19:39:58 +0000 |
commit | adcf909ae96b5c573ce868bff22442b00f857f47 (patch) | |
tree | 97918fdeaf90c628579f7ae92e224413df472839 /etc/inc | |
parent | 1a6cb6e7630210504d450f3bd4364878eea6b0b8 (diff) | |
download | pfsense-adcf909ae96b5c573ce868bff22442b00f857f47.zip pfsense-adcf909ae96b5c573ce868bff22442b00f857f47.tar.gz |
Just use the long reference here instead of creating potential dangerous reference.
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/captiveportal.inc | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/etc/inc/captiveportal.inc b/etc/inc/captiveportal.inc index a66c6cb..336b8e8 100644 --- a/etc/inc/captiveportal.inc +++ b/etc/inc/captiveportal.inc @@ -809,12 +809,11 @@ function captiveportal_disconnect($dbent, $radiusservers,$term_cause = 1,$stop_t captiveportal_free_ipfw_ruleno($dbent[1]); // XMLRPC Call over to the master Voucher node - $a_voucher = &$config['voucher']; - if(!empty($a_voucher['vouchersyncdbip'])) { - $syncip = $a_voucher['vouchersyncdbip']; - $syncport = $a_voucher['vouchersyncport']; - $syncpass = $a_voucher['vouchersyncpass']; - $vouchersyncusername = $a_voucher['vouchersyncusername']; + if(!empty($config['voucher']['vouchersyncdbip'])) { + $syncip = $config['voucher']['vouchersyncdbip']; + $syncport = $config['voucher']['vouchersyncport']; + $syncpass = $config['voucher']['vouchersyncpass']; + $vouchersyncusername = $config['voucher']['vouchersyncusername']; $remote_status = xmlrpc_sync_voucher_disconnect($dben, $syncip, $syncport, $syncpass, $vouchersyncusername, $term_cause, $stop_time); } |