Revision 02366840
Added by Jim Pingle over 1 year ago
src/usr/local/www/interfaces.php | ||
---|---|---|
1932 | 1932 |
$types4 = ["ppp" => gettext("PPP"), "pppoe" => gettext("PPPoE"), "pptp" => gettext("PPTP"), "l2tp" => gettext("L2TP")]; |
1933 | 1933 |
|
1934 | 1934 |
if (!in_array(array_get_path($pconfig, 'type'), ["ppp", "pppoe", "pptp", "l2tp"]) || |
1935 |
!array_key_exists(array_get_path($a_ppps, "{$pppid}/ports", []), get_configured_interface_list_by_realif())) {
|
|
1935 |
!array_intersect_key(explode(",", array_get_path($a_ppps, "{$pppid}/ports", "")), get_configured_interface_list_by_realif())) {
|
|
1936 | 1936 |
$types4 = array_merge(["none" => gettext("None"), "staticv4" => gettext("Static IPv4"), "dhcp" => gettext("DHCP")], $types4); |
1937 | 1937 |
} |
1938 | 1938 |
|
Also available in: Unified diff
Fix PHP error when saving PPP interface w/o config. Issue #14949