Return NULL when captive portal is not enabled

This commit is contained in:
Scott Ullrich 2009-09-17 20:11:31 -04:00
parent 08b6c550ac
commit b95c4db290

View File

@ -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);