Commit 03557fcc authored by Ad Schellevis's avatar Ad Schellevis Committed by Franco Fichtner

(legacy) regression services_dhcp.php

(cherry picked from commit 8e849d9e)
parent e31d4718
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment