From 2ee5fe9b64ddc9245067347426b6f7fccb5f0a27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ermal=20Lu=E7i?= Date: Sun, 15 Nov 2009 17:12:19 +0000 Subject: Fix Bug #147. --- etc/inc/voucher.inc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'etc/inc/voucher.inc') 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 +?> -- cgit v1.1