Update etc/inc/voucher.inc

Fix array initialization as noted by 'elratt0r' in http://forum.pfsense.org/index.php/topic,49799.0.html
This commit is contained in:
bcyrill 2013-01-10 17:03:32 +01:00
parent 051869b76b
commit 5a6359ae6f

View File

@ -217,7 +217,7 @@ function voucher_expire($voucher_received) {
// split into an array. Useful for multiple vouchers given
$a_vouchers_received = preg_split("/[\t\n\r ]+/s", $voucher_received);
$active_dirty = false;
$unsetindexes[] = array();
$unsetindexes = array();
// go through all received vouchers, check their valid and extract
// Roll# and Ticket# using the external readvoucher binary