summaryrefslogtreecommitdiffstats
path: root/etc/inc/voucher.inc
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2009-11-15 17:12:19 +0000
committerErmal Luçi <eri@pfsense.org>2009-11-15 17:12:19 +0000
commit2ee5fe9b64ddc9245067347426b6f7fccb5f0a27 (patch)
tree9899702fb6a3ad503cc16c6096e1863c866d46dd /etc/inc/voucher.inc
parent68b8930313565575e4ce2b1bbf12ddd887fd92da (diff)
downloadpfsense-2ee5fe9b64ddc9245067347426b6f7fccb5f0a27.zip
pfsense-2ee5fe9b64ddc9245067347426b6f7fccb5f0a27.tar.gz
Fix Bug #147.
Diffstat (limited to 'etc/inc/voucher.inc')
-rw-r--r--etc/inc/voucher.inc5
1 files changed, 2 insertions, 3 deletions
diff --git a/etc/inc/voucher.inc b/etc/inc/voucher.inc
index cd25dbf..700f197 100644
--- a/etc/inc/voucher.inc
+++ b/etc/inc/voucher.inc
@@ -46,8 +46,7 @@ function voucher_auth($voucher_received, $test = 0) {
// if $test is set, simply test the voucher. Don't change anything
// but return a more verbose error and result message back
- if (! $test)
- $voucherlck = lock('voucher');
+ $voucherlck = lock('voucher');
// read rolls into assoc array with rollid as key and minutes as value
$a_roll = &$config['voucher']['roll'];
@@ -407,4 +406,4 @@ function voucher_save_db_to_config() {
return;
}
-?> \ No newline at end of file
+?>
OpenPOWER on IntegriCloud