From be11dd7075bdd3c449ad093a726a0404912348f0 Mon Sep 17 00:00:00 2001 From: Ermal Date: Fri, 7 Mar 2014 17:34:55 +0000 Subject: Make the voucher auth through xmlrpc work. --- etc/inc/voucher.inc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'etc/inc') diff --git a/etc/inc/voucher.inc b/etc/inc/voucher.inc index 695857d..79929c2 100644 --- a/etc/inc/voucher.inc +++ b/etc/inc/voucher.inc @@ -53,6 +53,7 @@ function xmlrpc_sync_voucher_expire($vouchers, $syncip, $port, $password, $usern /* Construct code that is run on remote machine */ $method = 'pfsense.exec_php'; $execcmd = << count($config['voucher'][$cpzone]['roll']))) { + if (is_array($toreturn['voucher']) && is_array($toreturn['voucher']['roll'])) { $config['voucher'][$cpzone]['roll'] = $toreturn['voucher']['roll']; write_config("Captive Portal Voucher database synchronized with {$url}"); voucher_configure_zone(true); -- cgit v1.1