mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-18 02:25:05 +00:00
(legacy) regression services_dhcp.php
This commit is contained in:
parent
550d4d958a
commit
8e849d9e4f
@ -179,6 +179,13 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
|
||||
$pconfig[$fieldname] = null;
|
||||
}
|
||||
}
|
||||
// handle booleans
|
||||
$dhcpdconf['enable'] = isset($pconfig['enabled']);
|
||||
$dhcpdconf['staticarp'] = isset($dhcpdconf['staticarp']);
|
||||
$dhcpdconf['denyunknown'] = isset($dhcpdconf['denyunknown']);
|
||||
$dhcpdconf['ddnsupdate'] = isset($dhcpdconf['ddnsupdate']);
|
||||
$dhcpdconf['netboot'] = isset($dhcpdconf['netboot']);
|
||||
|
||||
// array conversions
|
||||
$pconfig['numberoptions'] = !empty($pconfig['numberoptions']) ? $pconfig['numberoptions'] : array();
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user