Don't override type so changing it is possible. Ticket #6439

This commit is contained in:
Chris Buechler 2016-06-01 16:52:45 -05:00
parent be0ab08558
commit e488da267d

View File

@ -97,7 +97,9 @@ if (isset($_POST['id']) && is_numericint($_POST['id'])) {
if (isset($id) && $a_ppps[$id]) {
$pconfig['ptpid'] = $a_ppps[$id]['ptpid'];
$pconfig['type'] = $a_ppps[$id]['type'];
if (!isset($_REQUEST['type'])) {
$pconfig['type'] = $a_ppps[$id]['type'];
}
$pconfig['interfaces'] = explode(",", $a_ppps[$id]['ports']);
$pconfig['username'] = $a_ppps[$id]['username'];
$pconfig['password'] = base64_decode($a_ppps[$id]['password']);