Commit 12e057fa authored by Ad Schellevis's avatar Ad Schellevis

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

parent d41b5a74
......@@ -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
......
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