From 5a6359ae6f919dc6fefb6a0e8e68950bf36aeccd Mon Sep 17 00:00:00 2001 From: bcyrill Date: Thu, 10 Jan 2013 17:03:32 +0100 Subject: [PATCH] Update etc/inc/voucher.inc Fix array initialization as noted by 'elratt0r' in http://forum.pfsense.org/index.php/topic,49799.0.html --- etc/inc/voucher.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/inc/voucher.inc b/etc/inc/voucher.inc index ea723cadc5..a0455d225d 100644 --- a/etc/inc/voucher.inc +++ b/etc/inc/voucher.inc @@ -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