Commit 7c3b9959 authored by Franco Fichtner's avatar Franco Fichtner

ntp: avoid crash report when not assigning interfaces

parent 603469c6
......@@ -100,7 +100,10 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
}
}
$a_ntpd['prefer'] = trim($a_ntpd['prefer']);
if (!empty($pconfig['interface'])) {
$a_ntpd['interface'] = implode(',', $pconfig['interface']);
}
// unset empty
foreach (array('noselect', 'prefer', 'interface') as $fieldname) {
......
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