diff options
author | Ermal <eri@pfsense.org> | 2014-01-03 14:52:49 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2014-01-03 14:53:36 +0000 |
commit | f38b383b7c88e68076dc13c5b174a44cfcf7c29f (patch) | |
tree | 51a97835524de32e23d6d4177e65597a06ed32c6 /etc/inc/captiveportal.inc | |
parent | a3a1b24ebfdeceb7ae3267db555c9498f336df78 (diff) | |
download | pfsense-f38b383b7c88e68076dc13c5b174a44cfcf7c29f.zip pfsense-f38b383b7c88e68076dc13c5b174a44cfcf7c29f.tar.gz |
Use empty here for testing even if the setting is unset
Diffstat (limited to 'etc/inc/captiveportal.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 51d8d92..9deccb6 100644 --- a/etc/inc/captiveportal.inc +++ b/etc/inc/captiveportal.inc @@ -1408,7 +1408,7 @@ function captiveportal_get_next_dn_ruleno($rulenos_start = 2000, $rulenos_range_ $rules = unserialize(file_get_contents("{$g['vardb_path']}/captiveportaldn.rules")); $ridx = $rulenos_start; while ($ridx < $rulenos_range_max) { - if ($rules[$ridx] === false) { + if (empty($rules[$ridx])) { $ridx += 2; } else { $ruleno = $ridx; |