(legacy) PHP Notice: Undefined index: localip in /usr/local/etc/inc/interfaces.inc on line 1606

This commit is contained in:
Ad Schellevis 2015-12-29 20:26:16 +01:00
parent d41b5a7456
commit 12e057fab7

View File

@ -1603,9 +1603,9 @@ function interface_ppps_configure($interface)
}
}
}
$localips = explode(',', $ppp['localip']);
$gateways = explode(',', $ppp['gateway']);
$subnets = explode(',', $ppp['subnet']);
$localips = isset($ppp['localip']) ? explode(',', $ppp['localip']) : array();
$gateways = isset($ppp['gateway']) ? explode(',', $ppp['gateway']) : array();
$subnets = isset($ppp['subnet']) ? explode(',', $ppp['subnet']) : array();
/* We bring up the parent interface first because if DHCP is configured on the parent we need
* to obtain an address first so we can write it in the mpd .conf file for PPTP and L2TP configs