diff --git a/etc/inc/voucher.inc b/etc/inc/voucher.inc index be3e32260b..374ec704a2 100644 --- a/etc/inc/voucher.inc +++ b/etc/inc/voucher.inc @@ -301,6 +301,9 @@ function voucher_expire($voucher_received) { function voucher_auth($voucher_received, $test = 0) { global $g, $config; + if (!isset($config['voucher']['enable'])) + return 0; + $voucherlck = lock('voucher', LOCK_EX); // XMLRPC Call over to the master Voucher node