summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2014-02-21 10:00:49 +0000
committerErmal <eri@pfsense.org>2014-02-21 10:00:49 +0000
commitbe1e934234148ee71f52a05a419f602a819e41bd (patch)
tree4eabe62ef9c76d188929a5b2516707405fd3ef23 /etc
parent4cdd20bcd649da887d03436baf4a6256e653b210 (diff)
downloadpfsense-be1e934234148ee71f52a05a419f602a819e41bd.zip
pfsense-be1e934234148ee71f52a05a419f602a819e41bd.tar.gz
Fix problem with the voucher synching that was introduced during conversion to zones
Diffstat (limited to 'etc')
-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 a2baae9..0c1c135 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