diff options
author | Ermal <eri@pfsense.org> | 2012-12-19 22:18:39 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2012-12-19 22:18:39 +0000 |
commit | b273dd26de42ef9c004297ae8c2477d81dfb4765 (patch) | |
tree | 877022e348f787be5ea3bdedbf765b09d245b212 | |
parent | fe7e987e36951d4a96640ba2790c21911e21b957 (diff) | |
download | pfsense-b273dd26de42ef9c004297ae8c2477d81dfb4765.zip pfsense-b273dd26de42ef9c004297ae8c2477d81dfb4765.tar.gz |
Restore needed code
-rw-r--r-- | etc/inc/captiveportal.inc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/etc/inc/captiveportal.inc b/etc/inc/captiveportal.inc index 25cea38..e40e368 100644 --- a/etc/inc/captiveportal.inc +++ b/etc/inc/captiveportal.inc @@ -1371,7 +1371,11 @@ function captiveportal_free_dn_ruleno($ruleno) { } function captiveportal_get_dn_passthru_ruleno($value) { - global $config, $g; + global $config, $g, $cpzone; + + $cpcfg = $config['captiveportal'][$cpzone]; + if(!isset($cpcfg['enable'])) + return NULL; $cpruleslck = lock("captiveportalrulesdn", LOCK_EX); if (file_exists("{$g['vardb_path']}/captiveportaldn.rules")) { |