Project

General

Profile

« Previous | Next » 

Revision 89341b50

Added by Chris Buechler about 13 years ago

fix vouchers

View differences:

usr/local/captiveportal/index.php
143 143
    captiveportal_logportalauth("unauthenticated",$clientmac,$clientip,"ACCEPT");
144 144
    portal_allow($clientip, $clientmac, "unauthenticated");
145 145

  
146
} else if ($config['voucher'][$cpzone]['enable'] && $_POST['accept'] && $_POST['auth_voucher']) {
146
} else if (isset($config['voucher'][$cpzone]['enable']) && $_POST['accept'] && $_POST['auth_voucher']) {
147 147

  
148 148
    $voucher = trim($_POST['auth_voucher']);
149 149
    $timecredit = voucher_auth($voucher);

Also available in: Unified diff