From f38b383b7c88e68076dc13c5b174a44cfcf7c29f Mon Sep 17 00:00:00 2001 From: Ermal Date: Fri, 3 Jan 2014 14:52:49 +0000 Subject: Use empty here for testing even if the setting is unset --- etc/inc/captiveportal.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.1