diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2009-09-17 20:11:31 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2009-09-17 20:11:31 -0400 |
commit | b95c4db290347eb7f45e217dd3641aa3f26a1ef7 (patch) | |
tree | b5dfc8cb5a96dc65245c9ace35487d1e427be615 /etc/inc | |
parent | 08b6c550ac4a8668d65f99a08009346f4c1a113a (diff) | |
download | pfsense-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.inc | 2 |
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); |