summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2014-01-03 14:52:49 +0000
committerErmal <eri@pfsense.org>2014-01-03 14:52:49 +0000
commitc8d611ed35b5e5346f74937610dbce3c774bd5a4 (patch)
tree9bc7294729259f8ffe68e86913eab06c33369fa3 /etc
parent44b72c67ec3331ecd3a6430697ad47dbeac7c450 (diff)
downloadpfsense-c8d611ed35b5e5346f74937610dbce3c774bd5a4.zip
pfsense-c8d611ed35b5e5346f74937610dbce3c774bd5a4.tar.gz
Use empty here for testing even if the setting is unset
Diffstat (limited to 'etc')
-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 8d5fa28..1348791 100644
--- a/etc/inc/captiveportal.inc
+++ b/etc/inc/captiveportal.inc
@@ -1369,7 +1369,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;
OpenPOWER on IntegriCloud