diff options
author | Chris Buechler <cmb@pfsense.org> | 2009-11-15 00:27:02 -0500 |
---|---|---|
committer | Chris Buechler <cmb@pfsense.org> | 2009-11-15 00:27:02 -0500 |
commit | dd35bb5a452244fa426bcd10a70f6a5350518c6f (patch) | |
tree | c81eee9b730f111a03aad2d0303f5c37b33d9acb /etc | |
parent | 4fca1592bd1c35d5147afdde4e037ecb948488bb (diff) | |
download | pfsense-dd35bb5a452244fa426bcd10a70f6a5350518c6f.zip pfsense-dd35bb5a452244fa426bcd10a70f6a5350518c6f.tar.gz |
Not sure why this was changed like this. As is, you couldn't disconnect the first client. I don't see any reason to do it that way, and this is the way it's done in RELENG_1_2
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/captiveportal.inc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/etc/inc/captiveportal.inc b/etc/inc/captiveportal.inc index 6b3e804..4c88b2a 100644 --- a/etc/inc/captiveportal.inc +++ b/etc/inc/captiveportal.inc @@ -654,12 +654,10 @@ function captiveportal_disconnect_client($id,$term_cause = 1) { if ($cpdb[$i][1] == $id) { captiveportal_disconnect($cpdb[$i], $radiusservers, $term_cause); captiveportal_logportalauth($cpdb[$i][4], $cpdb[$i][3], $cpdb[$i][2], "DISCONNECT"); - $tmpindex = $i; + unset($cpdb[$i]); break; } - } - if ($tmpindex > 0) - unset($cpdb[$tmpindex]); + } /* write database */ captiveportal_write_db($cpdb); |