summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2017-09-19 14:19:54 -0300
committerRenato Botelho <renato@netgate.com>2017-09-19 14:21:06 -0300
commitfbfbc6bd132134fefa543be55304a77e2fb87ff6 (patch)
treea8fc77f104788297a182d34e54a4f7812fead820
parent09237040fd9a05415673a47d26e669b274981c2e (diff)
downloadpfsense-fbfbc6bd132134fefa543be55304a77e2fb87ff6.zip
pfsense-fbfbc6bd132134fefa543be55304a77e2fb87ff6.tar.gz
Ticket #7834: Add missing global declarations
-rw-r--r--src/etc/inc/captiveportal.inc4
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")) {
OpenPOWER on IntegriCloud