diff --git a/src/www/interfaces_ppps_edit.php b/src/www/interfaces_ppps_edit.php index cb047fb46..5df8eb193 100644 --- a/src/www/interfaces_ppps_edit.php +++ b/src/www/interfaces_ppps_edit.php @@ -138,6 +138,11 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { $input_errors[] = gettext("Please choose a Link Type."); break; } + + if (!isset($pconfig['ports'])) { + $pconfig = array(); + } + if ($pconfig['type'] == "ppp" && count($pconfig['ports']) > 1) { $input_errors[] = gettext("Multilink connections (MLPPP) using the PPP link type is not currently supported. Please select only one Link Interface."); } @@ -163,7 +168,6 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { } } - foreach($pconfig['ports'] as $iface_idx => $iface){ if (!empty($pconfig['localip'][$iface_idx]) && !is_ipaddr($pconfig['localip'][$iface_idx])) { $input_errors[] = sprintf(gettext("A valid local IP address must be specified for %s."),$iface);