summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErik Fonnesbeck <efonnes@gmail.com>2010-12-15 17:14:52 -0700
committerErik Fonnesbeck <efonnes@gmail.com>2010-12-15 17:19:26 -0700
commit451e4a05edd8f1a65dde0e32f7d6015c3c20cfcb (patch)
treec5fab17357ebfd8a64f75d097b3d82f59337fa37
parent254ac496401b2259a17dc2deee1fa19f963d89c6 (diff)
downloadpfsense-451e4a05edd8f1a65dde0e32f7d6015c3c20cfcb.zip
pfsense-451e4a05edd8f1a65dde0e32f7d6015c3c20cfcb.tar.gz
Fix condition that needed to be negated after a recent layout change here and prevent a PHP warning if there are no voucher rolls. Fixes #1106
-rw-r--r--etc/inc/voucher.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/inc/voucher.inc b/etc/inc/voucher.inc
index f7cd1d5..ddd8ab4 100644
--- a/etc/inc/voucher.inc
+++ b/etc/inc/voucher.inc
@@ -248,7 +248,7 @@ function voucher_configure() {
/* kill any running minicron */
killbypid("{$g['varrun_path']}/vouchercron.pid");
- if (isset($config['voucher']['enable']))
+ if (!isset($config['voucher']['enable']))
return 0;
if ($g['booting'])
@@ -295,6 +295,7 @@ function voucher_configure() {
$a_roll = &$config['voucher']['roll'];
$voucherlck = lock('voucher');
+ if (is_array($a_roll))
foreach ($a_roll as $rollent) {
$roll = $rollent['number'];
OpenPOWER on IntegriCloud