From 4d3277443f335411afda0068c4811b35c67f2377 Mon Sep 17 00:00:00 2001 From: Ermal Date: Fri, 21 Feb 2014 10:00:49 +0000 Subject: Fix problem with the voucher synching that was introduced during conversion to zones --- etc/inc/voucher.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'etc/inc') 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); -- cgit v1.1