From be1e934234148ee71f52a05a419f602a819e41bd 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') 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); -- cgit v1.1