mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Return NULL when captive portal is not enabled
This commit is contained in:
parent
08b6c550ac
commit
b95c4db290
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user