summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-09-17 20:11:31 -0400
committerScott Ullrich <sullrich@pfsense.org>2009-09-17 20:11:31 -0400
commitb95c4db290347eb7f45e217dd3641aa3f26a1ef7 (patch)
treeb5dfc8cb5a96dc65245c9ace35487d1e427be615 /etc/inc
parent08b6c550ac4a8668d65f99a08009346f4c1a113a (diff)
downloadpfsense-b95c4db290347eb7f45e217dd3641aa3f26a1ef7.zip
pfsense-b95c4db290347eb7f45e217dd3641aa3f26a1ef7.tar.gz
Return NULL when captive portal is not enabled
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/captiveportal.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/captiveportal.inc b/etc/inc/captiveportal.inc
index c85d4d7..6be6c66 100644
--- a/etc/inc/captiveportal.inc
+++ b/etc/inc/captiveportal.inc
@@ -999,7 +999,7 @@ function captiveportal_write_elements() {
function captiveportal_get_next_ipfw_ruleno($rulenos_start = 10000, $rulenos_range_max = 9899) {
global $config;
if(!isset($config['captiveportal']['enable']))
- return;
+ return NULL;
$fwrules = "";
$matches = "";
exec("/sbin/ipfw show", $fwrules);
OpenPOWER on IntegriCloud