summaryrefslogtreecommitdiffstats
path: root/usr/local/captiveportal
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-06-01 20:22:30 +0000
committerErmal <eri@pfsense.org>2010-06-01 20:22:30 +0000
commit3bf8eb9345c930159f60bdadf10f670730a44afa (patch)
treef6c3e14c40d1b9c0b1d9bdcd937f3b5d8cf6ed48 /usr/local/captiveportal
parent5224b8e7d2bb6f6452d4d66c716c722178cf0ebe (diff)
downloadpfsense-3bf8eb9345c930159f60bdadf10f670730a44afa.zip
pfsense-3bf8eb9345c930159f60bdadf10f670730a44afa.tar.gz
Use correct array to iterate.
Diffstat (limited to 'usr/local/captiveportal')
-rwxr-xr-xusr/local/captiveportal/index.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/captiveportal/index.php b/usr/local/captiveportal/index.php
index 5990ec1..7d5494e 100755
--- a/usr/local/captiveportal/index.php
+++ b/usr/local/captiveportal/index.php
@@ -294,7 +294,7 @@ function portal_allow($clientip,$clientmac,$username,$password = null, $attribut
$mac = captiveportal_passthrumac_findbyname($username);
if (!empty($mac)) {
if ($_POST['replacemacpassthru']) {
- foreach ($a_passthrumacs as $idx => $macent) {
+ foreach ($config['captiveportal']['passthrumac'] as $idx => $macent) {
if ($macent['mac'] == $mac['mac']) {
unset($config['captiveportal']['passthrumac'][$idx]);
$mac['mac'] = $clientmac;
OpenPOWER on IntegriCloud