diff options
author | Ermal <eri@pfsense.org> | 2012-12-19 21:31:57 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2012-12-19 21:31:57 +0000 |
commit | fe3693cb1ac33580f86b8ed103ca9c4088e57941 (patch) | |
tree | b9bf92102c6cd1e3a8226edbd6acf658e8386158 /etc/inc/captiveportal.inc | |
parent | 7d2fedc976cb23901ee3f88d6d322bf1fb21ae0e (diff) | |
download | pfsense-fe3693cb1ac33580f86b8ed103ca9c4088e57941.zip pfsense-fe3693cb1ac33580f86b8ed103ca9c4088e57941.tar.gz |
Properly setup array
Diffstat (limited to 'etc/inc/captiveportal.inc')
-rw-r--r-- | etc/inc/captiveportal.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/captiveportal.inc b/etc/inc/captiveportal.inc index 9f7d8e0..7f54121 100644 --- a/etc/inc/captiveportal.inc +++ b/etc/inc/captiveportal.inc @@ -1346,7 +1346,7 @@ function captiveportal_get_next_dn_ruleno($rulenos_start = 2000, $rulenos_range_ break; } } else { - $rules = array_pad(array(), $rulenos_range_max - $rulenos_start, false); + $rules = array_pad(array(), $rulenos_range_max, false); $rules[$rulenos_start] = "used"; $rules[++$rulenos_start] = "used"; $ruleno = $rulenos_start; @@ -1423,7 +1423,7 @@ function captiveportal_get_next_ipfw_ruleno($rulenos_start = 2, $rulenos_range_m break; } } else { - $rules = array_pad(array(), $rulenos_range_max - $rulenos_start, false); + $rules = array_pad(array(), $rulenos_range_max, false); $rules[$rulenos_start] = "used"; $rules[++$rulenos_start] = "used"; $ruleno = 2; |