diff options
author | Renato Botelho <renato@netgate.com> | 2017-09-19 14:19:54 -0300 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2017-09-19 14:21:06 -0300 |
commit | fbfbc6bd132134fefa543be55304a77e2fb87ff6 (patch) | |
tree | a8fc77f104788297a182d34e54a4f7812fead820 /src/etc/inc | |
parent | 09237040fd9a05415673a47d26e669b274981c2e (diff) | |
download | pfsense-fbfbc6bd132134fefa543be55304a77e2fb87ff6.zip pfsense-fbfbc6bd132134fefa543be55304a77e2fb87ff6.tar.gz |
Ticket #7834: Add missing global declarations
Diffstat (limited to 'src/etc/inc')
-rw-r--r-- | src/etc/inc/captiveportal.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/etc/inc/captiveportal.inc b/src/etc/inc/captiveportal.inc index 1f232d7..5e824a8 100644 --- a/src/etc/inc/captiveportal.inc +++ b/src/etc/inc/captiveportal.inc @@ -688,7 +688,7 @@ function captiveportal_init_rules($reinit = false) { /* Delete all rules related to specific cpzone */ function captiveportal_delete_rules() { - global $g, $cpzoneid; + global $g, $cpzoneid, $cpzone; $skipto1 = captiveportal_ipfw_ruleno($cpzoneid); $skipto2 = $skipto1 + $g['captiveportal_rules_interval']; @@ -1762,7 +1762,7 @@ function captiveportal_write_elements() { } function captiveportal_free_dnrules($rulenos_start = 2000, $rulenos_range_max = 64500) { - global $cpzone; + global $g, $cpzone; $cpruleslck = lock("captiveportalrulesdn", LOCK_EX); if (file_exists("{$g['vardb_path']}/captiveportaldn.rules")) { |