summaryrefslogtreecommitdiffstats
path: root/etc/inc/voucher.inc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2014-02-21 10:00:49 +0000
committerErmal <eri@pfsense.org>2014-02-21 10:03:38 +0000
commit4d3277443f335411afda0068c4811b35c67f2377 (patch)
treeec62bb7dfb5a1b7317e45f17d9aa7ae783575838 /etc/inc/voucher.inc
parent75aec77a87acc4486a229d59688e26992a164b82 (diff)
downloadpfsense-4d3277443f335411afda0068c4811b35c67f2377.zip
pfsense-4d3277443f335411afda0068c4811b35c67f2377.tar.gz
Fix problem with the voucher synching that was introduced during conversion to zones
Diffstat (limited to 'etc/inc/voucher.inc')
-rw-r--r--etc/inc/voucher.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/voucher.inc b/etc/inc/voucher.inc
index 1402aa5..7541fff 100644
--- a/etc/inc/voucher.inc
+++ b/etc/inc/voucher.inc
@@ -200,7 +200,7 @@ EOF;
$toreturn = XML_RPC_Decode($resp->value());
if (!is_array($config['voucher']))
$config['voucher'] = array();
- if (is_array($toreturn['voucher']) && (count($toreturn['voucher'][$cpzone]['roll']) <> count($config['voucher'][$cpzone]['roll']))) {
+ if (is_array($toreturn['voucher']) && (count($toreturn['voucher']['roll']) <> count($config['voucher'][$cpzone]['roll']))) {
$config['voucher'][$cpzone]['roll'] = $toreturn['voucher']['roll'];
write_config("Captive Portal Voucher database synchronized with {$url}");
voucher_configure_zone(true);
OpenPOWER on IntegriCloud