mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
fix deletion of additional DHCP options. Resolves #273
This commit is contained in:
parent
232b01db70
commit
11de5c3da2
@ -309,7 +309,8 @@ if ($_POST) {
|
||||
|
||||
// Handle the custom options rowhelper
|
||||
$numbervalue = array();
|
||||
unset($config['dhcpd'][$if]['numberoptions']['item']);
|
||||
if(isset($config['dhcpd'][$if]['numberoptions']['item']))
|
||||
unset($config['dhcpd'][$if]['numberoptions']['item']);
|
||||
for($x=0; $x<isset($_POST["number{$x}"]); $x++) {
|
||||
if(is_int(intval($_POST["number{$x}"]))) {
|
||||
$numbervalue['number'] = htmlspecialchars($_POST["number{$x}"]);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user