summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2013-09-09 09:48:52 -0300
committerRenato Botelho <garga@FreeBSD.org>2013-09-12 08:44:51 -0300
commit0bf1e9252466820fcf161c4805f9f4dfc7fdb59e (patch)
tree99420adb6f35d980918d635cf34064f693776bee /etc
parent5eee375564b95e184b15c90ec0680d57172e496e (diff)
downloadpfsense-0bf1e9252466820fcf161c4805f9f4dfc7fdb59e.zip
pfsense-0bf1e9252466820fcf161c4805f9f4dfc7fdb59e.tar.gz
Remove unused variable $macdb
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/captiveportal.inc9
1 files changed, 2 insertions, 7 deletions
diff --git a/etc/inc/captiveportal.inc b/etc/inc/captiveportal.inc
index d76f5a0..7bbb3cd 100644
--- a/etc/inc/captiveportal.inc
+++ b/etc/inc/captiveportal.inc
@@ -989,14 +989,9 @@ function captiveportal_passthrumac_configure($lock = false) {
$rules = "";
- if (is_array($config['captiveportal'][$cpzone]['passthrumac'])) {
- $macdb = array();
- foreach ($config['captiveportal'][$cpzone]['passthrumac'] as $macent) {
+ if (is_array($config['captiveportal'][$cpzone]['passthrumac']))
+ foreach ($config['captiveportal'][$cpzone]['passthrumac'] as $macent)
$rules .= captiveportal_passthrumac_configure_entry($macent);
- $macdb[$macent['mac']][$cpzone]['active'] = true;
-
- }
- }
return $rules;
}
OpenPOWER on IntegriCloud